Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 3 months agoJavaScriptsh.itjust.worksimagemessage-square81fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageJavaScriptsh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 3 months agomessage-square81fedilink
minus-squarePoolloverNathan@programming.devlinkfedilinkarrow-up0·3 months agoYep, parentheses force {} to be interpreted as an expression rather than a block — same reason why IIFEs have !function instead of just function.
minus-squaredejected_warp_core@lemmy.worldlinkfedilinkarrow-up0·3 months ago/me goes back to get second folding chair.
Yep, parentheses force
{}
to be interpreted as an expression rather than a block — same reason why IIFEs have!function
instead of justfunction
./me goes back to get second folding chair.