bitcrafter to Programmer Humor · 2 days ago) (Whew!)external-linkmessage-square13fedilinkarrow-up177arrow-down16file-text
arrow-up171arrow-down1external-link) (Whew!)bitcrafter to Programmer Humor · 2 days agomessage-square13fedilinkfile-text
minus-squareanton@lemmy.blahaj.zonelinkfedilinkarrow-up2·12 hours ago This, unfortunately, means that semicolons are often inserted in places where you were not expecting them example: ()=>{ return {k:"v"}; // returns the object } ()=>{ return // returns undefined {k:"v"}; // unreachable } so the advice is to always include them manually yourself so that you are never unpleasantly surprised. The example will be unpleasantly surprising, no matter where you put semicolons.
example:
()=>{ return {k:"v"}; // returns the object } ()=>{ return // returns undefined {k:"v"}; // unreachable }
The example will be unpleasantly surprising, no matter where you put semicolons.