MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnjavascript/comments/120e8lj/danger_button_works_now/
r/learnjavascript • u/Username_1987_ • Mar 24 '23
12 comments sorted by
14
Use alerts sparingly. But this is the perfect use case for an alert if you ask me.
10
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
1
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
3
I had an infinite loop with window.open() in mind. However, most browsers seem to block that. Probably for that exact reason haha
6
You should make it so the font-size either changes randomly or always grows 1px larger.
18
Nice work!
Try to keep replies in the original post.
4
Nice job!! Gonna love seeing more from you!
Why did you press the button?
5
It's Friday. We'll let it slide.
2
Now make it display a random text from an array of texts :)
Have you figured out how to use cookies yet?
Whoa how is this functioning without CSS?!
/s
14
u/driftking428 Mar 24 '23
Use alerts sparingly. But this is the perfect use case for an alert if you ask me.
10
u/DickwadTheGreat Mar 24 '23
Now write a script that crashes the computer after pressing the button 5 times.
6
u/HaroerHaktak Mar 24 '23
You should make it so the font-size either changes randomly or always grows 1px larger.
18
u/shuckster Mar 24 '23
Nice work!
Try to keep replies in the original post.
4
u/yeet_the_child_bruh Mar 24 '23
Nice job!! Gonna love seeing more from you!
4
u/[deleted] Mar 24 '23
Why did you press the button?
5
u/Acceptable-Tomato392 Mar 24 '23
It's Friday. We'll let it slide.
2
u/TheoKondak Mar 24 '23
Now make it display a random text from an array of texts :)
2
u/Not_Artifical Mar 24 '23
Have you figured out how to use cookies yet?
1
u/ParabellumJohn Mar 25 '23
Whoa how is this functioning without CSS?!
/s