JavaScript Question: What is Destructuring?

preview_player
Показать описание
When you first encounter destructuring, the syntax may look weird. But it is a simplified way for assigning values from arrays and objects. We will look at destructuring in this tutorial.

Would you like to help keep this channel going?

Tutorials referred to in this video:

For more resources on JavaScript:

#javascript #AllThingsJavaScriptLLC
Рекомендации по теме
Комментарии
Автор

I can't tell you how much your channel is needed.

GoldenEmperorManifest
Автор

Without a doubt the JS channel . Thank you so much Sir.

fernandosalas
Автор

"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.

joyride
Автор

Man i just found your channel and i love it. So much to look at dont know where to start

nicholassingh
Автор

The best and simple explanation for destructuring.

robertoa
Автор

Amazing. Learning a lot of from this channel. Thank you SIR.

ErfanHossainShoaib
Автор

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.

Working
Автор

Thank you SIR, for making these videos

chamnil
Автор

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

Thumbs up fellow programmers 💪🏼

isrealsixojeifo
Автор

I watch so many videos and yet none seem to explain concepts as well as you do

westfield
Автор

Can you still use destructuring if the key to the key:value pair is in quotes, like a string?
"name": "Steven"

mitchell
Автор

I am new. Why is it necessary to destructure the arguments, when they can be passed as simple arguments?

ifenyame