JavaScript Comment

Comment are used to write something which you want or disable your JavaScript code

JavaScript comment are two type

1- Inline comment

2 - Multiline comment

Single line comment  dissable code only single line


/**********This is index.js file**********************/

console.log(" Use single line comment");

// You can open console in chrome by  3 dotts(display in write side ) +more tool+Developer tools

console.log("yes i open console in chrome");

Multiline Comment

multiline comment use to disable multiline comment  or you can write multiline text


console.log("hello word");

/* ***** console.log("javascript is a best");

console.log(" yes it really best") ;  *******/

console.log("i am use above multiline comment to dissable code");

Learn more in next chapter