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 trialanonymous123
5,794 PointsJavaScript Parameters
Mr. McFarland says "you can pass any number of arguments you want to a function" ( https://teamtreehouse.com/library/giving-information-to-functions ) but MDN says otherwise it says "The name of an argument to be passed to the function. Maximum number of arguments varies in different engines." ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function )
MDN is always correct right?
1 Answer
KRIS NIKOLAISEN
54,967 PointsI'm sure there is a limit that no one will ever practically reach. Functions ease programming by performing a specific task that is useful. Having an extraordinary number of parameters defeats the purpose.
anonymous123
5,794 Pointsanonymous123
5,794 Pointsok thank you!