Writing javascript applications with Kotlin
<p>I recently started to have a look at Kotlin and managed to create my first JVM applications. It's so cool to have a single language that compiles both to Java and JS. So, now I started playing with Kotlin2js and tried to understand the Javascript interoperability, and the possibilities to use JS frameworks like jQuery.</p>

<p>I found a couple of blog posts and examples:
<a href="http://blog.jetbrains.com/kotlin/2013/10/writing-kotlin-in-the-browser/" rel="noreferrer">http://blog.jetbrains.com/kotlin/2013/10/writing-kotlin-in-the-browser/</a>
<a href="http://blog.jetbrains.com/kotlin/2014/12/javascript-interop/" rel="noreferrer">http://blog.jetbrains.com/kotlin/2014/12/javascript-interop/</a>
<a href="https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/test/resources/testProject/kotlin2JsProject/mainProject/src/main/kotlin/example/main.kt" rel="noreferrer">https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/test/resources/testProject/kotlin2JsProject/mainProject/src/main/kotlin/example/main.kt</a></p>

<p><strong>Is there a documentation of the Kotlin JS library?</strong>
It's not yet mentioned at <a href="http://kotlinlang.org/api/latest/jvm/stdlib/index.html" rel="noreferrer">http://kotlinlang.org/api/latest/jvm/stdlib/index.html</a></p>

<p>I first compiled a simple sample app which used <code>import kotlin.browser.*</code> with gradle as build system which (finally and with <a href="https://stackoverflow.com/questions/36226278/setup-kotlin-project-with-gradle">some help here</a> worked, thanks again!). Than I imported the project into IDEA and suddenly it didn't compile anymore, I had to change the import to <code>import js.dom.html.*</code>. So, I guess it uses a different version of library? (And IDEA added <code>apply plugin: 'kotlin'</code> to my build.gradle in addition to kotlin2js and I guess this doesn't work.)</p>

<p>IDEA copied kotlin-jslib.jar to lib which says it's "Implementation-Version: 0.7.270" in its Manifest. For the compilation with gradle I used kotlin 1.0.1-1 and I'm pretty sure that I also selected this version in IDEA when creating the project.</p>

<p><strong>So, what are the best sources of information to understand Kotlin2js and the Kotlin-js-lib?</strong>
Especially the Javascript interoperability, how to use Frameworks like jQuery (it seems that there is jQuery support in the kotlin-js-lib), but also, how I can use other frameworks that don't come with Kotlin support yet. I understood that Kotlin has the <code>dynamic</code> keyword, and <a href="http://blog.jetbrains.com/kotlin/2014/12/javascript-interop/" rel="noreferrer">http://blog.jetbrains.com/kotlin/2014/12/javascript-interop/</a> mentioned noImpl which lead to a compile error when I tried to use it.
Maybe the best way for now is to look at the Kotlin sources?</p>

<p>Well, this is a rather long and unstructured question covering several aspects, but that's my current state of learning Kotlin :-) And maybe others experience the same problem.</p>