Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript Introducing JavaScript Finishing the Game Review Your Progress

var currentScore

in the var currentScore 60; currentScore = currentScore =20; im not getting the answer?

3 Answers

Antonio De Rose
Antonio De Rose
20,882 Points

Clayton Bowland, question below, what was your answer.

Quiz Question 2 of 5 Please fill in the correct answer in each blank provided below.

Fill in the blank(s) below:
Look at the following JavaScript code:

var currentScore = 60; currentScore = currentScore + 20;

This code will "run" one line at a time, from top to bottom. After these two lines of code run, the value inside the currentScore would be:

i think i put +40;

Antonio De Rose
Antonio De Rose
20,882 Points

how did you arrive to that score, do you want to try it again.

The currentScore + 20 makes "80", that's the correct answer