KotlinJS
KotlinJS, or Kotlin/JS, is a compiler target that enables Kotlin source code to be compiled to JavaScript. It allows developers to write code in Kotlin and run it in JavaScript environments such as web browsers and Node.js, supporting both frontend and server-side use cases within a single language ecosystem.
KotlinJS is part of the Kotlin Multiplatform project and is integrated through the Kotlin/JS Gradle plugin.
The compiler supports two backends for Kotlin/JS: the legacy backend and the IR (intermediate representation) backend.
Key features include seamless interop with JavaScript code and libraries, a strong type system for Kotlin code