How to comment JavaScript code?

Q

How to comment JavaScript code?

✍: Guest

A

Use // for line comments and
/*

*/ for block comments

2010-12-07, 3019👍, 0💬