+ 5

Elm to Javascript

I am a newbie to Elm but after 2 hours I must say, I like the way it works. As far as I understood, Elm compiles to JS. But how? My idea is to code Elm - compile and paste JS to Sololearn. How can I do it?

10th May 2021, 1:39 PM
Oma Falk
Oma Falk - avatar
2 Réponses
+ 1
Frogged I'm not sure how far you read about .elm but it should work with .js https://elmprogramming.com/elm-compiler.html The worst - failure to compile the best - runs to perfection. Trial by error.
11th May 2021, 9:43 PM
BroFar
BroFar - avatar
+ 1
BroFar yep found it. 5000 loc after compiling. https://code.sololearn.com/Wa6A6a10a14a/?ref=app Is it real? I can't believe it.
12th May 2021, 6:02 AM
Oma Falk
Oma Falk - avatar