From the beginning, Kotlin has been built with portability in mind. Because it is a JVM language, it can operate anywhere with an existing JVM stack, and with support for transpiling to JavaScript, you can write Kotlin code for a variety of web development needs, such as manipulating the DOM or interacting with Node.js.
Chapter 14, Kotlin and Web Development, will further explore the use of Kotlin in JVM and JavaScript web development.
Now, let's see how Kotlin works here.