It seems like you’re encountering a problem with your code. Based on the instructions you provided, you need to update the text of button1 when the player clicks on it. You should remove the existing console.log("Going to store."); line from the goStore() function and replace it with a line that updates the text of button1 to say “Buy 10 health (10 gold)”.
Here’s how you can modify your goStore() function:
SOLUTION REMOVED
This will change the text of button1 when the player clicks on it. Make sure this modification is made and then try running your code again. If you continue to encounter issues, double-check for any syntax errors or other issues in your code.
It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.
We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.
So like whats happening is that, when I put in my response to the question and then press ctrl+enter, nothing happens.
In the web development exercises that I was doing previously, after pressing ctrl+enter, the server either passes me and gives me the option to submit or with say code failed and I can try again on that question.
but now when I press ctrl+enter nothing happens. like its frozen, but I can adjust my answer, it just doesn’t process it.
I tried it again today and it started working. I’m not sure what the problem was. It wasn’t displaying any error infos. But I’m glad that its working now. Thanks