realitista@lemmy.world to Programmer Humor@programming.dev · 10 months agoPure Evillemmy.worldimagemessage-square53fedilinkarrow-up1535arrow-down1101cross-posted to: programmerhumor@lemmy.ml
arrow-up1434arrow-down1imagePure Evillemmy.worldrealitista@lemmy.world to Programmer Humor@programming.dev · 10 months agomessage-square53fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squarecoffee_poops@sh.itjust.workslinkfedilinkEnglisharrow-up7·10 months agosemicolons are optional in js anyway…
minus-squaremrpants@midwest.sociallinkfedilinkEnglisharrow-up8·10 months agoMost 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
minus-squarecoffee_poops@sh.itjust.workslinkfedilinkEnglisharrow-up1·10 months agoRight, but there’s not going to be a syntax error.
semicolons are optional in js anyway…
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
Right, but there’s not going to be a syntax error.