0% found this document useful (1 vote)
531 views

Javascript (TutorialsPoint)

This document discusses commenting in HTML, CSS, and JavaScript. HTML uses <!-- your comment here --> for comments, CSS uses /* your multiline comment here */ and // your single line comment here, and JavaScript can use <!-- your comment goes here //--> or // for single line comments. It also covers that JavaScript ignores whitespace and newlines, semicolons are optional if statements are on new lines, but required if on the same line.

Uploaded by

Divya Thakur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
531 views

Javascript (TutorialsPoint)

This document discusses commenting in HTML, CSS, and JavaScript. HTML uses <!-- your comment here --> for comments, CSS uses /* your multiline comment here */ and // your single line comment here, and JavaScript can use <!-- your comment goes here //--> or // for single line comments. It also covers that JavaScript ignores whitespace and newlines, semicolons are optional if statements are on new lines, but required if on the same line.

Uploaded by

Divya Thakur
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

Comments

HTML ~ <!-- your comment here -->

CSS ~ /* your multiline comment here */

// your single line comment here

Javascript ~ <!-- your comment goes here //-->

1. document.write() -> method/function which writes a string text to our


HTML document.

2. Javascript ignores spaces, tabs and newlines so, you are free to format and
indent your code freely to make it look consistent, neat and understandable.

3. Semicolons are optional if each statement is placed on a newline.

<script type="text/javascript">

var1 = 10

var2 = 20

</script>

But place semicolons necessarily if each statement is formatted on the same


line.

<script type="text/javascript">

var1 = 10; var2 = 20;

</script>

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy