JavaScript What is Array Destructuring in 60 Seconds #Shorts

preview_player
Показать описание
Array Destructuring is a much cleaner way to access array elements in JavaScript. In this short tutorial we'll go over exactly how to do that.

#javascript #shorts #wornoffkeys

FTC Legal Disclaimer - Some links found in my video descriptions might be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you and it helps support the channel so I can make more free YouTube videos.
Рекомендации по теме
Комментарии
Автор

these videos take no time to make but are very helpful

Nefarious_Production
Автор

How does await work and when will it run the code after it?

eansengchang
Автор

Hey! I have one suggestion! Could you help explain the usage of ".sort()" and ".reverse()" and how I could use this when I have pieces in an array like this:

let people = [{name: Alex, age: 27}, {name: John, age: 23}, {name: Sally, age: 25}]
for (const person of people) {
// Just naming them all, and where I would like to sort them out in order to get the oldest to the youngest
}

or in this:

people.forEach((person) => {
//Same thing as above, need from oldest to youngest
})

Thanks!

ego