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

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

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.

Hi Tseng,

It is called "Destructuring" if you need the google keywords, you can find further helpful info on the link below:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment

I'm sure there is a course on this in the library as well :)

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.