- /*
- //
Comments in JavaScript
examples/js/comments.js
console.log("code 1"); // comment console.log("code 2") /* more comment */ console.log("code 3") // console.log("/* hello */") console.log("code 4")
- To explain to the next developer why do we do something.
- Explain algorithm.
- Temporarily disable code for debugging.