I don't understand how Java script work with html.please explain it to me😐 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

I don't understand how Java script work with html.please explain it to me😐

I already know some JavaScript and I decided to type it in JS section of code playground but it doesn't work why? What am I doing wrong?please help me to correct my mistake🙏

22nd Mar 2020, 10:50 AM
Atoms~⚛
Atoms~⚛ - avatar
2 Answers
+ 4
Include this following clause in the head tag: <script src="Address/to/script.js"></script> You can also leave CDN links there too.
22nd Mar 2020, 10:57 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 3
Thank you so much ☺
22nd Mar 2020, 10:58 AM
Atoms~⚛
Atoms~⚛ - avatar