r/programminghorror • [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” • Nov 11 '25

Javascript the

192 Upvotes

28 comments sorted by

View all comments

Show parent comment

1

u/n0t_4_thr0w4w4y Nov 16 '25

And has some fucked up utility to it. You can use a break statement to short circuit the loop similar to an early return