Functions , Returns (Example) | Treehouse Community
Dec 16, 2014 ... create a function named 'arrayCounter' that takes in a parameter which is an array. The function must return the length of an array passed in or ...
Dec 16, 2014 ... create a function named 'arrayCounter' that takes in a parameter which is an array. The function must return the length of an array passed in or ...
JavaScript JavaScript Foundations Functions Return Values.I didn't even know I could use 'array', 'number', 'string'. I thought number & string were strings themselves. And array need to be defined first. These videos are very lite. The challenge are making up for it though.
Jan 22, 2020 ... html · head · meta charset="utf-8" · title>JavaScript Loops</title> · head · body · script src="script.js"></script> · body ...
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?This is in regards to the code challenge in the "Return Values" section of the JavaScript lessons.
Aug 16, 2017 ... array. I didn't understand the message. script.js. var players ...
Task: Around line 17, create a function named 'arrayCounter' that takes in a parameter which is an array. The function must return the length of an array passed in or 0 if a 'string', 'number' or 'undefined' value is passed in.
Jul 16, 2018 ... ... programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free ...
"Around line 17, create a function named 'arrayCounter' that takes in a parameter which is an array. The function must return the length of an array passed in or 0 if a 'string', 'number' or 'undefined' value is passed in".
The function must return the length of an array passed in or 0 if a 'string', 'number' or 'undefined' value is passed in.I don't like how it's asking you to pass a parameter as an array, but absolutely no mention, or examples of arrays being passed as parameters are mentioned in the video.