
Destructuring in ES6 - Beau teaches JavaScript
video description
Date: 2022-03-14
Comments and reviews: 8
Ijeoma
There might be an error at 5:10 --
It doesn't say how it knows which object it should deconstruct and didn't work when I ran the code.
After some tries, I came up with this:
let str = -greet:-Hello-, name:-Gollom--
// specify the object in the function parameter
const friendlybot = ( -greet, name- = str ) => greet + -, my name is - + name
>> friendlybot()
// outputs
'Hello, my name is Gollom'
reply
There might be an error at 5:10 --
It doesn't say how it knows which object it should deconstruct and didn't work when I ran the code.
After some tries, I came up with this:
let str = -greet:-Hello-, name:-Gollom--
// specify the object in the function parameter
const friendlybot = ( -greet, name- = str ) => greet + -, my name is - + name
>> friendlybot()
// outputs
'Hello, my name is Gollom'
reply
ARtD
i can't get it because the course is not organized i go to much tutorials and they all speaks about things haven't seen clearly in the course for example you ask someone about spread operator while he need to know others stuff which you think already we know
i think the course need more simplicity and videos with solution to know exactly and clearly what does this means
reply
i can't get it because the course is not organized i go to much tutorials and they all speaks about things haven't seen clearly in the course for example you ask someone about spread operator while he need to know others stuff which you think already we know
i think the course need more simplicity and videos with solution to know exactly and clearly what does this means
reply
YAHUAH'S
Always remember we must repent of our sins (sin is transgression The Law Of Yahuah The Father in Heaven. The Law are The Books: Genesis, Exodus, Leviticus, Numbers, & Deuteronomy). We must repent of our sins and Have Belief On Yahusha The Messiah. HE Died and Rose three days later so that we can be forgiven of our sins!
Come to HIM--------
reply
Always remember we must repent of our sins (sin is transgression The Law Of Yahuah The Father in Heaven. The Law are The Books: Genesis, Exodus, Leviticus, Numbers, & Deuteronomy). We must repent of our sins and Have Belief On Yahusha The Messiah. HE Died and Rose three days later so that we can be forgiven of our sins!
Come to HIM--------
reply
Khidirboev
I was going to leave fcc web platform because it got complex starting from ES6 and I couldn't catch the concept. But these videos are way more than great!! I think freecodecamp should put these videos on the web platform order by order
reply
I was going to leave fcc web platform because it got complex starting from ES6 and I couldn't catch the concept. But these videos are way more than great!! I think freecodecamp should put these videos on the web platform order by order
reply
Clinton
This is a really helpful video. My thanks. But I have a question. How does this work when there are two objects with different names, different values, but the exact same keys?
reply
This is a really helpful video. My thanks. But I have a question. How does this work when there are two objects with different names, different values, but the exact same keys?
reply
Jdb
4:46 I don't understand when you would ever be able to pass anything into profileUpdate since it is a variable and not a function. Can somebody explain this to me?
reply
4:46 I don't understand when you would ever be able to pass anything into profileUpdate since it is a variable and not a function. Can somebody explain this to me?
reply
Travis
Are you naturally typing this fast? Or is that portion sped up for the video? I have been trying to speed up and become more efficient at typing code.
reply
Are you naturally typing this fast? Or is that portion sped up for the video? I have been trying to speed up and become more efficient at typing code.
reply
Ethorbit
Quick and straight to the point, thank you. Your explanation is crystal clear and now variables surrounded by curly brackets make sense to me.
reply
Quick and straight to the point, thank you. Your explanation is crystal clear and now variables surrounded by curly brackets make sense to me.
reply
Add a review, comment
Other channel videos















