Maybe I’m just getting the syntax wrong on this, but I’d really prefer to practice prompting for user input wherever it would be fitting, rather than constantly hard-coding input into everything I write, but even something as simple as this is giving me a reference error saying that prompt is not defined:
The code for the entire game works just fine if I assign a value to userInput, I just would rather have the flexibility of asking for a prompt whenever the course is telling me to obtain information from a user.
You’re right about this, I never try to replicate the situation as I’ve passed those lessons. But it’s really great to see you added some extra code to improve the usability, the initiative should be commended. What I can suggest for you is that if you want to try this additional code as your side project, you can copy and paste it in repl.it, essentially it’s a online IDE: