Question: How do you add a comment to JavaScript code?

  1. `! This is a comment`
  2. `# This is a comment`
  3. `\\ This is a comment`
  4. `// This is a comment`

Answer: The correct answer of the above question is Option D:`// This is a comment`