Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Basics Storing and Tracking Information with Variables Variables Review

Krisitans Engels
Krisitans Engels
10,670 Points

All options seem to be fine. One of the snippets meant to contain "const" here, right?

In all options var and let reassigned. All seem to be legit

Krisitans Engels
Krisitans Engels
10,670 Points

let prevents to define the same variable twice:

let score = 2; let score = 3; ----> Syntax error

let score = 2 ; score = 3; ----> this is fine

Steven Parker
Steven Parker
231,268 Points

There are 5 questions in this quiz., which one are you referring to>

1 Answer

Steven Parker
Steven Parker
231,268 Points

I didn't see a question in the quiz involving a variable named "score" .. but there was one that has two "let" statements, and you're right about how they work.

So can you restate the question you are asking here?