Currently, I am enrolled in a JavaScript course where our instructor taught us how to create a reset functionality for the app we are working on. Instead of writing multiple lines of code to reset all variables to their default values, I opted for a simpler approach by using location.reload()
since it's just a small web game. Now, I'm curious if forcefully reloading the page is considered bad practice or if it's essentially the same as resetting everything through code.