0

Morning. My External Javascript file is not display in my browser. Thanks

display script JavaScript https://code.sololearn.com/W95LC6AFkR46/?ref=app https://code.sololearn.com/W0Vw98CIgn22/?ref=app

2nd Dec 2022, 2:56 AM
Malick Diagne
Malick Diagne - avatar
2 Respostas
+ 1
If you are working on the online environment, put your Javascript code in the tab provided like you have done in https://code.sololearn.com/W0Vw98CIgn22/?ref=app. If you are working with your files locally(files saved on your computer), put your .thtml and app.js files in the same folder.
2nd Dec 2022, 9:54 AM
Avic Ndugu
Avic Ndugu - avatar
+ 1
This may help you with linking your files: https://www.grainge.org/pages/authoring/relative_paths/relative_paths.htm We use relative path to link, and practice is to make project folder, where you place every file of this website for example. If you have a lot of files of css or js, you can make folder inside project folder to organize. You need to specify location of your file so we can link them in html, see link to understand how it work. It depend of where is your external file and where is your html file, is it in same folder or diferent one. If i remember right we cant link from our saved codes in sololearn, but we can upload it somewere on internet and use apsolute link to connect them. If you practice relative links use your pc or some editor on phone, sololearn save our codes on cloud not on our phone so we can't connect them with relative links.
2nd Dec 2022, 11:58 AM
PanicS
PanicS - avatar