Today I Learnt 12

Learning Kotlin Creating variables Notes from: https://www.programiz.com/kotlin-programming/variable-types and You can define variables dynamically: var firstname = "Harsh" var lastname = "Kumar" var age = 26 var happiness = 0.1 You can specify the type: var firstname:String = "Harsh" var age:Int = 43 Kotlin variables can be declared in two ways: val: Immutable. var: Mutable. Basic variable types (https://kotlinlang.org/docs/basic-types.html) Numerical types: 6 built-in types Byte: values between -128 and 127 Short: values between -32768 and 32767 (16-bit signed two’s complement integer)....

May 11, 2021 · 4 min · Harsh Kumar