JavascriptJavaScript Comments

Comments are used to explain code and are ignored during execution.

  • // for single-line comments
  • /* */ for multi-line comments
// This is a single-line comment

/*
  This is a
  multi-line comment
*/