Red@reddthat.com to linuxmemes@lemmy.worldEnglish · 6 months agoCode interviews for a PHP developer rolesreddthat.comimagemessage-square122fedilinkarrow-up1310arrow-down120
arrow-up1290arrow-down1imageCode interviews for a PHP developer rolesreddthat.comRed@reddthat.com to linuxmemes@lemmy.worldEnglish · 6 months agomessage-square122fedilink
minus-squareNaich@lemmings.worldlinkfedilinkarrow-up39·6 months agoWant to print out all odd numbers from 1 to 100? Easy: for(_=[];_<+!![]+""+[]*[]+[]*[];_++)(_%+(!![]+!![])?console.log(_):[]);
minus-squareNaich@lemmings.worldlinkfedilinkarrow-up17·6 months agoActually, I prefer this one: for(_=[];_<+!![]+""+[]*[]+[]*[];_++%+(!![]+!![])?[]:console.log(_));
minus-squareNaich@lemmings.worldlinkfedilinkarrow-up18·6 months agoOr this one without the “undefined” when run in a browser console: for(_=[];_<+!![]+""+[]*[]+[]*[]-!![]-!![];_++%+(!![]+!![])?[]:console.log(_));_+!![]
minus-squareboredsquirrel@slrpnk.netlinkfedilinkarrow-up1·5 months agoWtf people, can somebody explain?
Want to print out all odd numbers from 1 to 100? Easy:
for(_=[];_<+!![]+""+[]*[]+[]*[];_++)(_%+(!![]+!![])?console.log(_):[]);
Actually, I prefer this one:
for(_=[];_<+!![]+""+[]*[]+[]*[];_++%+(!![]+!![])?[]:console.log(_));
Or this one without the “undefined” when run in a browser console:
for(_=[];_<+!![]+""+[]*[]+[]*[]-!![]-!![];_++%+(!![]+!![])?[]:console.log(_));_+!![]
Wtf people, can somebody explain?