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 The JavaScript 'use strict' Statement

Sean Flanagan
Sean Flanagan
33,235 Points

Duplicate parameters

Hi. In the console I typed arguments just as Huston did but whereas he was able to access the arguments, I got a reference error.

Does anyone know why?

Steven Parker
Steven Parker
231,846 Points

At what time index in the video do you see this?

2 Answers

Sean Flanagan
Sean Flanagan
33,235 Points

Hi Steven. Thanks for the prompt response. It happens at about 15 minutes into the video.

Steven Parker
Steven Parker
231,846 Points

You might have skipped a step in the setup. In the video, a "debuger" statement is added to the function, and then the function is invoked from the console. The arguments value is examined while the execution is suspended by the "debugger" statement.

The value of "arguments" only exists inside a function, so if you were attempting to examine it at another time the error you received would be normal.