I am trying to make a guessing game with simple java script. the professor gave us a guide, but i am still a bit confused. Based on the guide, we are to use a do/while loop, and within that loop, use the if/else if conditional statement, here is what i have so far. i've tried changing it so many times, and all i end up with is a never ending loop, even after the number is guessed, it doesnt stop
<body>
    <p>
        I'm thinking of a number between 1 and 100, try to guess it! </br>
        <script>
            var number = Math.floor(Math.random() * 100 + 1)
        //guess variable to store the guessed number by user
            var guess 
        //output to store output to the user
            var output 
        //if the user guessed the number or not, initialize it to false
            var guessed = false
        //do/while loop, while condition is based on if the user NOT guessing the number (e.g. guessed == false)
        do {
            guess = prompt ("Think of a number between 1 and 100, what is your number?");
            document.write ("You guessed the number " + guess + "<br/>");
            if (guess > number) {
                document.write ("You guessed too high, think smaller" + "<br/>");
                guessed = false
                }
            else if (guess < number){
                document.write ("You guessed too low, think bigger" + "<br/");
                guessed = false
                }
            else {
                alert("You guessed the right number!")
                guessed = true}
        }
        while (guessed = false) 
        </script>
    </p>
</body>
 
     
     
     
     
    