Using Destructuring to Pass an Object as a Function's Parameters (JavaScript)

Using Destructuring to Pass an Object as a Function's Parameters (JavaScript)

teachToLearn

3 года назад

3,490 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Priya Sumi
Priya Sumi - 15.12.2022 16:50

Thank you so much

Ответить
Alex Miserandino
Alex Miserandino - 26.10.2022 19:13

phenomenal

Ответить
Don't Kill The Darlings
Don't Kill The Darlings - 25.07.2022 20:37

Thank you for another superb video.

Ответить
Alireza JL
Alireza JL - 23.05.2022 10:53

thank you for the explenation, but could you explain it to me in the last step how does the function know which object to extract max & min from? why we don't specify the object like: const half = ({max, min} = stats) => (max + min) / 2.0;

Ответить
Karina Fialho
Karina Fialho - 15.05.2022 09:29

Thanks, man! Your videos are really helpfull!

Ответить
Richard Collins
Richard Collins - 01.04.2022 21:22

I hate the answer be so simple that I over think it. Thank you for upload this video

Ответить
Spike Spiegel
Spike Spiegel - 23.11.2021 14:53

What would happen if we had two objects 'stat1' and 'stat2' and both contained the same parametres? how would you define it when writing the function?

Ответить