Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · 2 months agoJavaScriptsh.itjust.worksimagemessage-square27fedilinkarrow-up19arrow-down10
arrow-up19arrow-down1imageJavaScriptsh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · 2 months agomessage-square27fedilink
minus-squareVictor@lemmy.worldlinkfedilinkarrow-up1·2 months agoSo there’s yet another level of quirkery to this bullshit then, it seems. 😆 Nice digging! 🤝 I also noticed that if you surround the curlies with parentheses, you get the same again: > eval('{} + []') 0 > eval('({}) + []') '[object Object]'
So there’s yet another level of quirkery to this bullshit then, it seems. 😆 Nice digging! 🤝
I also noticed that if you surround the curlies with parentheses, you get the same again:
> eval('{} + []') 0 > eval('({}) + []') '[object Object]'