bitcrafter@programming.dev to Programmer Humor@programming.dev · 2 days ago) (Whew!)programming.devexternal-linkmessage-square13fedilinkarrow-up172file-text
arrow-up172external-link) (Whew!)programming.devbitcrafter@programming.dev to Programmer Humor@programming.dev · 2 days agomessage-square13fedilinkfile-text
minus-squareantonlinkfedilinkarrow-up2·13 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.