How do I execute Kotlin code run in a Chrome browser

I’m a kotlin newnie

You have to use “kotlinc-js” to compile the kotlin code to java script, then you can use that in the browser. To do that you can use either gradle or create an intellij project by choosing the kotlin js preset.
Google also helps: