bob
bob copied to clipboard
Add a confirmation dialog when pressing "Reset" on the "Try it" live code examples
INTRO: I often go on the web docs just to use the "Try it" live code examples as my own quick-to-access coding environment for JavaScript. If I need to test something in JavaScript, I literally just open my browser and search "map array" and click on the first result, which brings me to the website.
PROBLEM: I can't tell you how many times I've spent up to an hour typing out/testing code, and then I accidentally click on "Reset" instead of "Run". You can't Control-Z to get it back. It's gone forever.
SOLUTION: When clicking "Reset", please have a dialog window that pops up and asks you to confirm. Also, I don't even know why anybody would use the "Reset" button instead of just refreshing the page anyways...