JavaScript comments are considered hints that you as a programmer can put in addition to make your code easier to read and comprehend. The comments are ignored completely by JavaScript engines. JavaScript comments could also be utilized to avoid execution when testing other codes. The JavaScript comment feature simplifies the production of readable code. They are also easy to write and recognize: usually, a JavaScript comment block or the multi-line comment starts with */ , while the single line comment will start with //. Multi-line comments usually are used more often for documentations that are formal. Single-Line Comments example: name = "Jill"; // The Name console.log("Hello " + name); Here, // The name is a comment. You can also use a single line comment just like this: name = "Rose"; console.log("Hi" + name); // The name Multi-line Comments In Javascript, any of the text between /* and */ is considered a multi-line comment. For example, /* The following program has the description of a game called PacMan. Pac-Man is a Japanese based video game franchise published, owned and developed by Bandai Namco Entertainment. */ Since the rest of the description will be used to introduce the background of the game, the sample comment above is one example where you can use a multi-line comment.