Description
The following document is to help your students create a simple JavaScript code using random number generator and “else if” statements. They will have to create a JavaScript code for the computer to “think” of a number and then have an user to input a guess. The computer should respond saying if the guess is right, too low, or too high. I also included the HTML code to get them focused on the JavaScript.
Extra Credit option: Have students create a second Guessing Game in the same document but they need to have them pick numbers between 10-30.
You can use this with any program that you are using. I use Mastery Coding and CodePen, and it works great on those
Highlights
Description
The following document is to help your students create a simple JavaScript code using random number generator and “else if” statements. They will have to create a JavaScript code for the computer to “think” of a number and then have an user to input a guess. The computer should respond saying if the guess is right, too low, or too high. I also included the HTML code to get them focused on the JavaScript.
Extra Credit option: Have students create a second Guessing Game in the same document but they need to have them pick numbers between 10-30.
You can use this with any program that you are using. I use Mastery Coding and CodePen, and it works great on those

