How do I link the js file to my html within this app? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How do I link the js file to my html within this app?

I'm not sure how to include link the js file to the HTML page within this app. I know how to normally, is it the same? https://code.sololearn.com/WO6QdFxvwBEH/?ref=app

11th Nov 2018, 12:56 AM
Brandon Autry
Brandon Autry - avatar
3 Answers
+ 2
In SoloLearn, you can either link the script file the standard way if it's hosted (i.e. if I put "daily_web_practice.js" into the address bar of a web browser, it would return content) or copy and paste the entire contents of your script file into the JS tab, which it seems you've already found. 😊 Remember that in SoloLearn, contents in the JS tab run before the HTML document is loaded, so if you want it to run at the end of body, you will have to use another method to defer running the script (like window.onload).
11th Nov 2018, 1:03 AM
Janning⭐
Janning⭐ - avatar
+ 4
awesome thanks
11th Nov 2018, 1:05 AM
Brandon Autry
Brandon Autry - avatar
+ 2
You can add JavaScript code on JS part of code playground(web)!!
11th Nov 2018, 1:01 AM
AL Araf
AL Araf - avatar