+ 2

I wonder why those complementary languages (HTML, CSS, Javascript) have different ways of commenting. They could have made it simple! :)

3rd Jul 2015, 12:19 PM
Milos Ivanis
Milos Ivanis - avatar
3 Answers
+ 5
They weren't designed to be complementary from the start. So, these languages had different origin. Only after a while it turned out that the stack of HTML/CSS/JS make sense together.
3rd May 2017, 1:43 PM
Thanh Le
Thanh Le - avatar
+ 2
This is a very good point. Sometimes I wish that the commenting was the same, but then I remember that these technologies / languages were created at different time periods and all "technically" run in different contexts - which works to explain the differences.
29th Dec 2015, 8:43 PM
Oscar Frink
+ 2
in JavaScript /*comment*/ just like in CSS
24th Feb 2016, 1:21 PM
Nikolay Yazov
Nikolay Yazov - avatar