how to write notes in js
snippet in javascript

comment in javascript

user117

// single line comment 

/* multiline comemnt 
line 2
line 3
line 4 */

how to write notes in js

user4077

//this is a comment of one sentence. you dont have to close it

window.alert("hello");

/*this is a comment that lasts until it closes

you can try it!!*/

window.alert("Hi");

comment in JavaScript

user5739

// This is how you comment a single line in JavaScript

/*
This is how you comment
multiple lines in 
JavaScript
*/