JVM / JavaScript independence?

I have not tried targetting JavaScript with Kotlin, however, it may be an important capability for my project in the long run.

I’m curious about the strategy to promote maximum portability of Kotlin applications between the JVM and JavaScript.

For example, I notice that Kotlin Map implementation seems to rely heavily on the Java libraries. To ensure portability I would imagine most of these core libraries could be / would be rewritten in pure Kotlin.

Is this part of the long term strategy?

How much indepdence should I expect?

Thank you – Randy

Currently theres little or no portability of the library code. The overall plan is to have a set of core library functions available on both platforms, but not necessarily reusing their implementation code on both platforms.