Creating a Kotlin project with a JavaScript target

To start a new Kotlin project that targets JavaScript, perform the following steps:

  1. Open up IntelliJ IDEA and select Create New Project:
  1. Navigate to the Kotlin project templates in the left-hand side of the dialog, select JS | IDEA, and then click NEXT. This will ensure that our newly created project is configured to target JavaScript using the IntelliJ IDEA build system:
  1. Next, we set our project name and project location. You can keep the Project SDK and Kotlin JS library fields as their ...

Get Mastering Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.