Declaring functions in Kotlin is simple. We have a few different ways to do it. For example we can skip defining the return type if the function returns an expression and does not have a function body. Or, we can set function parameters to have […]
Tag: Kotlin
Declaring Variables in Kotlin With val, var and const
We have three different keywords to use to declare variables in Kotlin: Var– To declare mutable variables that can change value. Val– To declare read-only variables. Const– To declare constants. Val- Read-Only Variables in Kotlin Read-only or assign-once variables in Kotlin are variables which values […]
What is Kotlin?
Kotlin is a modern programming language that is free and open source. It got its’ name from the Kotlin island that is located near St. Petersburg. It originates from a company named JetBrains that are also developing a well-known development environment IntelliJ IDEA. Kotlin is […]