I'm Supposed to write JS in HTML | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

I'm Supposed to write JS in HTML

Help

2nd Sep 2022, 12:12 PM
Chioma Adele Iyke Obi
Chioma Adele Iyke  Obi - avatar
1 Answer
+ 2
There are two ways to attach javascript course in your html course: First method is to write the link of your javascript page and place it in the head tag with script tag. Second method is to write script tag in body tag wherever you want to write your code . In first method javascript code is attached externally and in second method javascript code is attached internally.
3rd Sep 2022, 6:33 AM
Hasnain [ACTIVE CHALLENGER]
Hasnain [ACTIVE CHALLENGER] - avatar