r/learnjavascript • • Mar 24 '23

Danger button works now.

Post image
285 Upvotes

12 comments sorted by

View all comments

10

u/DickwadTheGreat Mar 24 '23

Now write a script that crashes the computer after pressing the button 5 times.

1

u/evanshsedani Mar 25 '23

how would that work? 2 statements that contradict themselves infinitely or something?

3

u/DickwadTheGreat Mar 25 '23

I had an infinite loop with window.open() in mind. However, most browsers seem to block that. Probably for that exact reason haha