In the following example, the comment is used to prevent the execution of a single code line (can be suitable for debugging): <html...
Home / javaScript
Showing posts with label javaScript. Show all posts
Showing posts with label javaScript. Show all posts
JavaScript Multiline Comments
Multiline comments start with /* and end with */.The following example uses a multiline comment to explain the code.
JavaScript Comments
JavaScript comments can be added to explain the JavaScript script or to make the code more readable.Single line comments start with //. The...
JavaScript Blocks
JavaScript statements can be grouped together in blocks. Blocks start with a left curly bracket { and end with a right curly bracket }.The ...
JavaScript Code
JavaScript code (or just JavaScript) is a sequence of JavaScript statements. Each statement is executed by the browser in the sequence it is...
JavaScript Statements
A JavaScript statement is a command to a browser. The purpose of the command is to tell the browser what to do.The following JavaScript sta...
Using an External JavaScript
If you want to run the same JavaScript on several pages without having to write the same script on every page, you can write a JavaScript i...
Where to Put the JavaScript?
Scripts in <head> Scripts in <head> and <body>
Subscribe to:
Posts
(
Atom
)