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 trialKrisitans Engels
10,670 PointsAll 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
Steven Parker
231,268 PointsThere are 5 questions in this quiz., which one are you referring to>
1 Answer
Steven Parker
231,268 PointsI 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?
Krisitans Engels
10,670 PointsKrisitans Engels
10,670 Pointslet prevents to define the same variable twice:
let score = 2; let score = 3; ----> Syntax error
let score = 2 ; score = 3; ----> this is fine