does javascript code need to start with "<!-- " ?

Posted by sunglim on Stack Overflow See other posts from Stack Overflow or by sunglim
Published on 2010-03-17T10:14:18Z Indexed on 2010/03/17 10:21 UTC
Read the original article Hit count: 237

Filed under:
|

I am newbie.

many of javascript code start with <!--

<script type="text/javascript">
        <!--

and finish with //-->

//-->
    </script>

I think the reason is for compatibility.
But I cannot find the clue in any books.

even I cannot find anything with google.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html-comment