Kotlin is the new programming language by JetBrains. It can be compiled to Java and JavaScript. Kotlin is slowly making its mark in the Android development territory. I have started creating short 2-3 minutes code-based videos on Kotlin language. Here’s the first video that starts off with a ‘Hello World‘
Kotlin is a concise, strongly typed, modern programming language. And here’s the simple Hello World program.
//hello.kt fun main(args:Array<String>){ println("Hello world") }
You can run this program by compiling it using kotlinc compiler. The code gets compiled to a HelloKt.class with a main method. You run it with kotlin runtime engine. The hello.kt file can be compiled to JavaScript say hello.js using kotlinc-js.
You can find the video here.