The Javascript specification specifies four kinds of line terminators.
LF, CR, line separator and paragraph separator.
Which of the above best describes the line separator used for the below snippet?
var char_count=0
var in_valid = "_!@#$%^&*()=+~`,<.>/?:;{[}]-|\\"
I think you may be misinterpreting that section of the spec.
All of the line terminator characters are equivalent to each other. It doesn’t matter which one is the separator for those two lines of code, any separator will have the same effect.
If you wrote the code on Windows, your original code probably has both CR and LF terminators. If you wrote it on mac or linux, it probably just has LF.