@[email protected] to Programmer [email protected] • 2 years agoPure Evillemmy.worldimagemessage-square57fedilinkarrow-up1530arrow-down198cross-posted to: [email protected]
arrow-up1432arrow-down1imagePure Evillemmy.world@[email protected] to Programmer [email protected] • 2 years agomessage-square57fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilinkEnglish8•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@[email protected]linkfedilinkEnglish1•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.