Blog

Web Dev Tip: Semi colons on Javascript are optional


Morpheous Meme: What If I Told You, Semi colons on JS is optional?
What If I Told You, Semi colons on JS is optional?
Yep you've read it right. Line breaks on JavaScript is sufficient enough. No "need" with semi colons. But in my experience it is still better to have the habit of pressing semi colon in every end of the line. I actually can't explain why. But there was once an error that convinced me that it is better to put semi colon after. On the other hand, on multi-line strings, just add backslash on the end of the line.


Comments (0)


Add a Comment





Allowed tags: <b><i><br>Add a new comment:


A Few Accomplishments

Integer eu ante ornare amet commetus vestibulum blandit integer in curae ac faucibus integer non. Adipiscing cubilia elementum integer. Integer eu ante ornare amet commetus.

Possibly broke spacetime

Integer eu ante ornare amet commetus vestibulum blandit integer in curae ac faucibus integer adipiscing ornare amet.

Terraformed a small moon

Integer eu ante ornare amet commetus vestibulum blandit integer in curae ac faucibus integer adipiscing ornare amet.

Snapped dark matter in the wild

Integer eu ante ornare amet commetus vestibulum blandit integer in curae ac faucibus integer adipiscing ornare amet.

Contact Me

Integer eu ante ornare amet commetus vestibulum blandit integer in curae ac faucibus integer non. Adipiscing cubilia elementum integer. Integer eu ante ornare amet commetus.