"You'll run into it and wonder - what is this code doing." Read my mind. I always point people here when they want to level up their javascript. Thank you again for the high quality lessons.
Your channel was one of the best things I found out to learn more about JS just like other but focus on C# both focus and the why and how something works and thanks to that I was able to complete some exercises, thanks.
Nice job Steven 👍; I think you forgot to add, renaming a a destructured property... let info = { workAddressofJohn: "1414 bekker street" } function getAddress({ workAddressOfJohn: address }) { return address; } From the above, we changed the destructured variable name to 'address' and so refer to it as address instead of the former long name............. Thumbs up fellow programmers 💪🏼
I can't tell you how much your channel is needed.
Thanks
Without a doubt the JS channel . Thank you so much Sir.
You are most welcome
"You'll run into it and wonder - what is this code doing."
Read my mind. I always point people here when they want to level up their javascript. Thank you again for the high quality lessons.
Thanks for the feedback!
Man i just found your channel and i love it. So much to look at dont know where to start
Welcome aboard!
The best and simple explanation for destructuring.
Your channel was one of the best things I found out to learn more about JS just like other but focus on C# both focus and the why and how something works and thanks to that I was able to complete some exercises, thanks.
Awesome! Thank you!
Amazing. Learning a lot of from this channel. Thank you SIR.
Glad to hear it!
Great explanation thank you.
Glad it was helpful!
Thank you SIR,for making these videos
Nice job Steven 👍; I think you forgot to add, renaming a a destructured property...
let info = {
workAddressofJohn: "1414 bekker street"
}
function getAddress({ workAddressOfJohn: address }) {
return address;
}
From the above, we changed the destructured variable name to 'address' and so refer to it as address instead of the former long name.............
Thumbs up fellow programmers 💪🏼
Yes, thanks for adding that. There are also some nice things you can do with spread/rest when destructuring.
🙂🙂🙂
Excellent ! Thanks
You are the best ❤❤
Can you still use destructuring if the key to the key:value pair is in quotes, like a string?
"name": "Steven"
Sure:
const obj = {
"name": "Steven"
};
let {name} = obj;
I watch so many videos and yet none seem to explain concepts as well as you do
Thanks!
I am new. Why is it necessary to destructure the arguments, when they can be passed as simple arguments?
Destructuring is a new feature that makes certain tasks easier. So you could do as you say, but not as easy.
Great tutorial, thank you
Glad it was helpful!