Tech Study

JavaScript Comments

Comments are nothing more than text that does not display in the browser window. It’s useful to understand what code is written for what purpose.Comments are useful for conveying messages in any programming language. Used to add code information, warnings, or suggestions to make code easier to interpret by end users or other developers.
Comments in JavaScript are no different from comments in other programming languages ​​and are ignored by the JavaScript engine.

JavaScript supports two different types of comments:

Single-line Comment:

As the name suggests, single-line comments can only stop the execution of a single line.Single-line comments start with two forward slashes (//) and continue until the end of the line:

// This is a single-line comment
document.write("Hello Javascript");

Hello Javascript

Multi-line Comment:

Multi-line comments are the next version of the single-line comment and can be used to stop the execution of multiple lines and a block of code.It can be used to add single as well as multi line comments.Multi-line comments start with a forward slash and an asterisk (/) and end with an asterisk and a forward slash (/)

This is a
multi-line comment
document.write("Javascript multi-line comment");

javascript multi-line comment

Java Final keyword

Introduction : java final keyword The final keyword present in Java programming language is generally used for restricting the user. …

Read more

C++ Memory Management: new and delete

C++ Memory Management We know that arrays store contiguous and the same type of memory blocks, so memory is allocated …

Read more