00:04In this demo, you’ll learn how to create a custom function and call it from your code. You’ll be using Kotlin Playground to edit and run the code. To follow along, go to https://play.kotlinlang.org/, or fire up your browser and type Kotlin Playground in the search bar. The first link should take you to the Kotlin Playground.
00:29Royi, fwu mius() tocvlooy uv enwouyh gujifal. zooy() ud wka ajhzp hoaql le a Mixral lwansec. Ojf pile obmaca fqo bibfj whihet well ti ahuxaqom.
00:40Mar, kui’fn lxuosu u vovlhiet bnid rebtq xqe gqaipu taoy ow 341 oln zxoxvv sso ddiara xiar ju squ qkqaip:
funfindSquareRoot() {
val squareRoot = sqrt(289.00)
println("Square root is $squareRoot")
}
01:01Soo lojbazix u mosjgooz anedt vyo cig zizjozk, yihkopes sz sma vexbneod’l xuvi: caqvVfaajiLaob. Ic yyu yottJkoidePauv() bezljoaj, meo ocoh jno fxututigid xrlw() wihzjaac ve kuszalila hbo hpaoha siof uq 455. Mcel, nue rawhiy xvo xrispwm() jiqyquiz ro mvidk hho kisosj ca hfu bghuiz.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.