The <script> tag in JavaScript:

In HTML you can add or insert JavaScript using <script> tag. All JavaScript code will be written inside <script> and

</script> tag.

Syntax of JavaScript:

In HTML you can use JavaScript directly in HTML document or you can create a separate JavaScript document. When you use JavaScript in HTML document than you have to use <script> tag.



—JavaScript Code here—



Semicolons in JavaScript:

Every single line should be terminated by semicolon but it is not necessary. But when you writing two or more line code in a

single line at that time you have to terminate every statement in that single line.



JavaScript is a Case Sensitive language means the keywords, function names; variables

etc. must always be use same as they define in JavaScript.

Leave a Reply

Your email address will not be published. Required fields are marked *