Basic Syntax

Reading Time: < 1 minute

In this tutorial we will learn how the basci syntax of kotlin made up.

Let’s start our first app with the “Hello, world” message and print it to the screen.

Hello, World!

Every Kotlin program must have the main function defined, which is the starting point of the program and it is done with the fun keyword.

The println() finction is used to generate output. We can pass message to print in double quotes to the function.

In Kotlin there is no need to have semicolon at the end of the line.
Follow and like us:
Click to rate this post!
[Total: 0 Average: 0]

Leave a comment

stay informed!

Subscribe to receive exclusive content and notifications