Javascript question:
1. prompt for max number
instead of locking the game into a number between 1 and 20, use the prompt() method to ask the user what the maximum number should be. the prompt should be in a loop with validation as demonstrated previously in the course making sure that the inputted value is a positive number. if the user inputs a decimal, simply round it.
when a valid number is inputted, change the content of the instructions to specify guesses between 1 and n.
i need to know how to pass a variable from one function to another in javascript as well.