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
6
u/HaroerHaktak Mar 24 '23
You should make it so the font-size either changes randomly or always grows 1px larger.
18
4
4
5
2
2
1
14
u/driftking428 Mar 24 '23
Use alerts sparingly. But this is the perfect use case for an alert if you ask me.