Is SemiColon in javascript optional??

stalin s - Oct 5 '22 - - Dev Community

YESSSSS.

JavaScript inserts semicolons for you automatically. That’s why it’s optional to write semicolons. You don’t need semicolons to write good JavaScript.

In fact, it’s easier to read and write JavaScript when you leave out the semicolons. Many experts have already done so. I’d leave the explaining of why you don’t need semicolons to this

Image description

Happy Learning

. . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player