Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
tytho23148yI used to like being explicit with semicolons in JavaScript, but I learned way more about what actually makes up a JavaScript statement by leveraging ASI. Plus now my JS looks gorgeous
-
as someone who's always explicitly used semicolons, what are the consequences of leaving them out? I know in a few specific cases they're still needed, but, does the interpreter automatically add them in? does that have any performance implications?
-
coookie26128y@AdamGaskins The interpreter does add missing semicolons when necessary but since it only affects the parsing of the code the only impact on performance you'd have will be on startup time and that too will be negligible.
-
tytho23148y@AdamGaskins also, if you're transpiling your code like for front-end, minification will add in the semicolons for you
Related Rants
My company wants me to add semicolon in my JS code. I now have to change 191 lines. Why would you want the goddamn ;
ðŸ˜
undefined
semicolon
internship