JS Comments
Syntax
Comments in JavaScript are used to explain code or prevent execution; single-line comments start with //, while multi-line comments are wrapped in /* */.
// This is a single-line comment
console.log('Hello World'); // Comment at end of line
// Comment out code// console.log('Hello World');
// Multiple// single-line// comments
/* This is a multi-line comment*/