404
Pure Evil (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] coffee_poops@sh.itjust.works 6 points 1 year ago

semicolons are optional in js anyway....

[-] mrpants@midwest.social 6 points 1 year ago

Most of the time. Sometimes it can lead to code that is ambiguous and ASI picks the wrong way to interpret it.

https://stackoverflow.com/questions/25088708/what-rules-must-i-follow-to-write-valid-javascript-without-semicolons

[-] coffee_poops@sh.itjust.works 1 points 1 year ago

Right, but there's not going to be a syntax error.

this post was submitted on 15 Sep 2023
404 points (83.9% liked)

Programmer Humor

19215 readers
541 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS