@realitista@lemmy.world to Programmer Humor@programming.dev • 2 years agoPure Evillemmy.worldimagemessage-square61fedilinkarrow-up1531arrow-down198
arrow-up1433arrow-down1imagePure Evillemmy.world@realitista@lemmy.world to Programmer Humor@programming.dev • 2 years agomessage-square61fedilink
minus-square@coffee_poops@sh.itjust.workslinkfedilinkEnglish9•2 years agosemicolons are optional in js anyway…
minus-square@mrpants@midwest.sociallinkfedilinkEnglish8•2 years 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-square@coffee_poops@sh.itjust.workslinkfedilinkEnglish1•2 years 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.