+ 1
First Time Writing Javascript in SoloLearn
Hello beautiful sololearners! I am planning on writing my first JavaScript based program in SoloLearn. My questions for you are: ~Is all I have to do is to write the JS in the JS area? ~Do I have to somehow link it to the HTML, even though there’s technically no file to link? ~How will the JS be rendered in the HTML? Just wherever the script tags are? ~And can it be interactive? Meaning can my JS have multiple continuos inputs and outputs while continuing to run? Thank you infinitely so much for your input and help!
2 odpowiedzi
+ 1
On Sololearn, just writing in the JS section works. Sololearn automatically links it to the HTML file. And yes, you can make it interactive.
+ 1
~ Yes
~ No
~ Your js code isn't rendered anywhere. The JavaScript code is loaded along with the rest of the HTML (if any). You need not add any script tags for the code in the JavaScript tab as mentioned. You can, however, add script tags for external libraries, like so:
https://code.sololearn.com/WvpvJ44OrFib/#html
~ Sure it can.
----------------
No problem, we're all here to help each other :)