TPT
Total:
$0.00
JavaScript: Guessing Game
Share

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

Report this resource to TPT
Reported resources will be reviewed by our team. Report this resource to let us know if this resource violates TPT's content guidelines.

JavaScript: Guessing Game

Jesse Codes
2 Followers
$7.00

Highlights

Digital downloads
Grades icon
Grades
9th - 12th
Pages
2
Teaching Duration
90 minutes

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

Report this resource to TPT
Reported resources will be reviewed by our team. Report this resource to let us know if this resource violates TPT's content guidelines.

Reviews

This product has not yet been rated.
Rated 0 out of 5

Questions & Answers

Loading
Loading