Thanks!

function ask (set_max) { var ask_max = prompt(set_max, ""); return ask_max } var user_max = ask("Welcome! What number would you like to be the max?"); alert("The number you have chosen is " + user_max); function random (random_number) { var com_answer = prompt(random_number, 1 + Math.floor(Math.random() * max)) return com_answer } guess = prompt("Guess a number between 1 and " + user_max + "?");{ if (guess == random_number) { alert ("You've won!"); } else if (guess > random_number) { alert ("Too high! Guess again."); } else if (guess < random_number) { alert ("Too low! Guess again."); } }