https://kotlinlang.org logo
#android
Title
# android
v

visruth

05/31/2017, 7:47 AM
Is there any Java library to convert Kotlin to JavaScript code? I have a String s = "contains Kotlin code"; which I want to convert to a JavaScript code? is it possible?
m

mg6maciej

05/31/2017, 7:50 AM
visruth:
String s = "contains Kotlin code";
Java code containing Kotlin code? 🙂
🧌 1
v

visruth

05/31/2017, 7:51 AM
yes
I have a project which declares JavaScript code in String. It's kept at server side and shares it to the client when needed. So if it's possible to convert Kotlin code to JavaScript code with the help of a jar then I can replace all JavaScript strings with Kotlin in my project and later I can convert it to javascript on demand.
This is the use case I'm facing.
4 Views