#4 JavaScript Tutorials | Statements and comments

Telusko
Youtube
Related Topic
:- Javascript

Statements in JavaScript – A computer program is a list of “instructions” to be “executed” by a computer. In a programming language, these programming instructions are called statements. JavaScript program is a list of programming statements. Most JavaScript programs contain many JavaScript statements. The statements are executed, one by one, in the same order as they are written. Semicolons (;) Semicolons separate JavaScript statements. On the web, you might see examples without semicolons. Ending statements with semicolon is not required, but highly recommended. JavaScript Comments – JavaScript comments can be used to explain JavaScript code, and to make it more readable. JavaScript comments can also be used to prevent execution, when testing alternative code. Single Line Comments (//) – Single line comments start with //. Any text between // and the end of the line will be ignored by JavaScript (will not be executed). Multi-line Comments (/* */) – Multi-line comments start with /* and end with */. Any text between /* and */ will be ignored by JavaScript. For Program code and more resources checkout this article - https://simplesnippets.tech/statements-comments-in-javascript/ Video by - Tanmay Sakpal Simple Snippets Channel link - https://www.youtube.com/simplesnippets

Comments