Random Number Generator – Python

I was able to create a random number generator guessing game pretty easily in python. I used a while loop and if/elif/else statements to make this. It’s pretty simple

Random Number Generator – Javascript

I had some trouble creating the same thing in javascript. Here is my code

It’s almost functioning, but everything messes up when I guess the number correctly. Despite my code, the status variable never seems to change, and the result is an endless loop of alerts. I’m starting off a bit slow with Javascript, but I’m still making some progress.

Leave a Reply