What if I comment JS statement with plain HTML comment tag inside a HTML document? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What if I comment JS statement with plain HTML comment tag inside a HTML document?

23rd Sep 2016, 8:21 PM
Miguel
Miguel - avatar
4 Answers
+ 2
if you use plain html comment inside a script tag it won't work you have to use JavaScript comment inside script tag.
28th Sep 2016, 5:39 PM
Joe Sharma
Joe Sharma - avatar
0
I don't think it will work because it is still inside the script tags...
26th Sep 2016, 3:15 PM
Katie
Katie  - avatar
0
In an HTML document HTML comments will trump other commands.
26th Sep 2016, 10:00 PM
Ryne
Ryne - avatar
- 1
once you comment a statement it will be ignored and the code will not run.
26th Sep 2016, 4:49 PM
Julius Martin
Julius Martin - avatar