Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

I can't figure out the javascript like this:

function find_Mini(...numbers) {}

What is the javascript (...numbers) meaning? And how to use this? I just don't know how to google the key words. If someone can help, I will appreciate.

2 Answers

Martin Jones
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Martin Jones
Front End Web Development Techdegree Graduate 44,227 Points

Hmmmmm, I'm not sure if I would specifically use this ...numbers to find the max value.

I would highly recommend Wes Bos JavaScript 30 as well if you want some more practice with Array's,

It's free and has really good content, it definitely helped me make a bit more sense of what new functions are available, they are quite nice and short as well.

https://javascript30.com

Specifically, you could jump straight to videos 04 - Array Cardio Day 1 and 07 - Array Cardio Day 2 that relate more to what you are looking for.

There is. The Treehouse course can be found here!

Thank you all so much! Martin Jones
But I still don't know how to use it correctly. Basically , I know the javascript ...numbers it's used in an array, or when the objects are more than a specific number. What if I want to use javascript ...numbers in a function as a parameter, use to create a function like findMaxValue? In the MDN document and the video provided by Andrew Alexander Barber , there is no explanation or an example with it.