Career path

Front-End Engineer

Back to the list

JavaScript Syntax, Part 1

5.Number Guesser

Overview

This project is slightly different from others you have encountered thus far on Codecademy. Instead of a step-by-step tutorial, this project contains a series of open-ended requirements which describe the project you’ll be building. There are many possible ways to correctly fulfill all of these requirements, and you should expect to use Codecademy, the internet, and other resources when you encounter a problem that you cannot easily solve. In order to complete this project, you should have completed the first three sections of Introduction to JavaScript through Learn JavaScript: Functions. ​​

Project Goals

In this project, you’ll write JavaScript functions to power a small guessing game. Your code will run in the browser instead of the terminal, and you can use your browser’s console to help you test your functions and view any syntax errors.

Number Guesser!

Round 1

Target Number: ?

Computer

Score: 0

?

You

Score: 0

Step 1

Input a number between 0 and 9

Step 2

Click "Make a Guess" to submit your guess and see who won the round.

Step 3

Click "Next Round" to play again.