Dokumentation on Transformation from Kotlin to JavaScript?

Hello,

it is not quite clear to me how the transformation from Kotlin code to JavaScript works. What happens if Kotlin code refers to classes of the Java standard library? Does the Kotlin code to be convertable to JavaScript have to abide to certain rules? I’d be glad if there were some document or short description about this. Couldn’t find anything searching the Internet. It’s fine if it’s on a management level as I have little experience with JavaScript anyway.

Thanks, Oliver

The only rule to abide is to only use libraries available on the JS platform. I.e. is you reference a Java-specific class, it wouldn't work (wouldn't even compile)