Can we check in runtime whether the program is run...
# javascript
c
Can we check in runtime whether the program is running on node.js or frontend JS?
c
What happens if we try to use any node.js module? Will it just not transpile to front-end JS?
Or not run?
g
there is no “front-end js” in Kotlin
it will fail on runtime because module is not found
c
Though the JS tests also run on the browser, don't they?
g
I mean that Kotlin JS can be used as for browser and for node, it includes some external declarations for browser, they will not work on runtime of course, but if you use them, they will be compiled