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.
JavaScript is one of the 3 languages all web developers must learn: 1 HTML to define the content of web pages 2 CSS to specify the layout of web pages 3 JavaScript to program the behavior of web pages More ...
Compared to many other programming languages, JavaScript offers one of the more beginner-friendly entry points into the world of coding. The great thing about it is that it comes installed on every modern web browser —there’s no need to set up any kind of development environment, which means you can start coding with JavaScript right away!
You don't have to get or download JavaScript. JavaScript is already running in your browser on your computer, on your tablet, and on your smart-phone. JavaScript is free to use for everyone. W3Schools maintains a complete JavaScript reference, including all HTML and browser objects.
However, these are currently not supported by VS Code's JavaScript language service and are flagged as errors. For users who still want to use these future features, we provide the javascript.validate.enable setting.
No. This is a holdover from the days when Netscape 2 was common.
It isn't needed with any browser that can function on the web today, and it is positively harmful in XHTML.
I wrote a longer explanation last year.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With