Run Kotlin/JS

Edit pageLast modified: 18 March 2025

Since Kotlin/JS projects are managed with the Kotlin Multiplatform Gradle plugin, you can run your project using the appropriate tasks. If you're starting with a blank project, ensure that you have some sample code to execute. Create the file src/jsMain/kotlin/App.kt and fill it with a small "Hello, World"-type code snippet:

Depending on the target platform, some platform-specific extra setup might be required to run your code for the first time.