[Solved] about javascript comment specification
This happens because <!– behaves similar to //, i.e. it comments out only everything after it on the same line. JS doesn’t recognize the closing part of the HTML’s comment block (–>). Looks like you even know this, since you’ve commented it out in your snippet. Originally this commenting method was used to hide a … Read more