To comment out in JavaScript, put
// in front of the line.Here's how you do it:
console.log('This is NOT commented out');
// console.log('This is commented out');
console.log('This is NOT commented out');
Multiple lines
To comment out multiple lines without adding // to every line, put /* at the start and */ at the end like so:
console.log('This is NOT commented out');
/*
console.log('This is commented out');
console.log('This is commented out');
console.log('This is commented out');
console.log('This is commented out');
console.log('This is commented out');
*/
console.log('This is NOT commented out');
