Now that we have an understanding of how the Kotlin to JavaScript compilation works, where you can make use of the compiled JavaScript, and why you might want to consider using Kotlin, let's walk through building a simple web app using Kotlin.
We're going to walk through the setup of a new Kotlin project with a JavaScript target. We'll then examine the output artifacts of the JavaScript compilation to understand what the compiler is actually producing when we build our project. And finally, we'll make use of those build artifacts to run a simple Kotlin function when our web page is loaded.