What is the answer to the number guesser?

Where do you find the code that tells you the answer is 3?

If you click the folder icon in the code editor, you can see the other files that are being used in this exercise. There are 4 files in there, with index.html being the one we edit for the lesson. Of the others:

  • style.css changes the look to the website.
  • check.html contains code to run the next script to check your number and displays the results (notice the go back button to return to the main page)
  • Finally, numCheck.js is a javascript that has the number set in and compares it to the number you enter.

If you aren’t familiar with javascript yet, don’t worry. It’ll come later. It is used to create interactivity in websites.

8 Likes