0

Why do we use // for cmt while we can use <!-- text --> ?!

20th Dec 2016, 4:22 PM
Senpai
Senpai - avatar
3 ответов
+ 4
@Nikunj Arora /* this is used in CSS and in JS */
20th Dec 2016, 6:02 PM
Sjoerd Flameling
Sjoerd Flameling - avatar
+ 2
<!-- This comment only works in HTML --> \* This is used in CSS *\ // This is used in JavaScript
20th Dec 2016, 4:50 PM
Nikunj Arora
Nikunj Arora - avatar
+ 1
To avoid nesting
20th Dec 2016, 5:24 PM
Rishi Anand
Rishi Anand - avatar