How to do multi line comment in JavaScript

I want to do multi line comment in my code. Which symbol is used for it?

Your Answer

JavaScript, multi-line comments are written using /* */

Example:
JavaScript
/*
This is a multi-line comment
It can span multiple lines
*/
👉 Everything inside /* and */ is ignored by JavaScript.

Javascript

Didn't get the answer.
Contact people of Talent-Javascript directly by clicking here