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 trialSean Flanagan
33,235 PointsDuplicate 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?
2 Answers
Sean Flanagan
33,235 PointsHi Steven. Thanks for the prompt response. It happens at about 15 minutes into the video.
Steven Parker
231,846 PointsYou 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.
Steven Parker
231,846 PointsSteven Parker
231,846 PointsAt what time index in the video do you see this?