Answer the question
In order to leave comments, you need to log in
Why do files of different extensions have different styles for adding comments?
Hey!
For files with the extension, .css, .js
the comments look like this /* */
For HTML
like this <!-- -->
For .sass
like this //
Is there any historical reasons for this phenomenon or are there other reasons?
Answer the question
In order to leave comments, you need to log in
They are different languages with different syntax. And they have a lot more differences, by the way.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question