Why Is Array/Object Destructuring So Useful And How To Use It

Поділитися
Вставка
  • Опубліковано 26 чер 2024
  • ES6 is one of the best things that ever happened to JavaScript. It added a ton of new features and syntax that made JavaScript so much more enjoyable to work with. One of the best features that ES6 added was object and array destructuring. With destructuring you can take apart an object or array incredibly easily. This has many use cases from making variable assignment much cleaner to the all important function argument destructuring. In this video I am going to show you exactly how destructuring works, and the best places to use destructuring.
    🚨 IMPORTANT:
    React Course Email Signup: email.webdevsimplified.com/
    📚 Materials/References:
    ES6 Playlist: • JavaScript Promises In...
    Destructuring/Spread Operator Blog Article: blog.webdevsimplified.com/202...
    🧠 Concepts Covered:
    - Array destructuring
    - When to use array destructuring
    - How to use the spread operator with arrays and destructuring
    - Object destructuring
    - When to use object destructuring
    - How to use the spread operator with objects and destructuring
    - The importance of object destructuring
    🌎 Find Me Here:
    My Website: webdevsimplified.com
    Patreon: / webdevsimplified
    Twitter: / devsimplified
    Discord: / discord
    GitHub: github.com/WebDevSimplified
    CodePen: codepen.io/WebDevSimplified
    #Destructuring #WDS #ES6

КОМЕНТАРІ • 658

  • @RedLagoona1
    @RedLagoona1 4 роки тому +625

    This is not a tutorial... This is a piece of art.

    • @sephstar-offical
      @sephstar-offical 2 роки тому

      definatly

    • @shlomoh.6148
      @shlomoh.6148 2 роки тому +9

      His face is piece of art xD #nohomo

    • @kenthankgod2619
      @kenthankgod2619 2 роки тому +3

      @@shlomoh.6148 dude 🤨

    • @Winter_Wyvern1
      @Winter_Wyvern1 Рік тому

      @@sephstar-offical defiynaetly

    • @DarrenJohn10X
      @DarrenJohn10X Рік тому

      @RedLagoona1 Wait until you jump into Kyle's "Learn React Today" course! It's the same but even better in all the ways that make WDS stand out on UA-cam compared to many competitors!

  • @dan110024
    @dan110024 3 роки тому +100

    Kyle is King at making his mistakes look like not mistakes...
    'we'll log street.... but as you can see there is no street...'

    • @youtubewts
      @youtubewts 2 роки тому +6

      😂 There's a glitch in the video where it looks like the recording breaks, he works out what's gone on and then he gets to the covering up part... nicely done! 😂

  • @21agdmnm
    @21agdmnm 4 роки тому +79

    this is probably the 6th time I come back to this video lol.

    • @OrincyWhyteDesigns
      @OrincyWhyteDesigns 2 роки тому

      My second 😂😂 I’m pretty sure I’ll be back in a month

  • @WitlessMean
    @WitlessMean 4 роки тому +180

    You're probably the only guy I know of who keeps things simple with easy to follow examples while also speaking clearly and quickly within short videos with multiple examples. It honestly surprises me every time. Thank you. If I get through my bootcamp it'll literally be because of you, Steve Griffith, and Techsith.

    • @harrazmasri2805
      @harrazmasri2805 2 роки тому

      @THE KINGDOM EXPERIENCE I didnt, i still in my own BootCamp, but it has been years

    • @chase4972
      @chase4972 7 місяців тому

      That's becos he knows and understand what his doing. wen you truly understand what your doing, you will b able to teach a 3 years old child...

  • @theprince08853
    @theprince08853 4 роки тому +79

    I'm a backend dev and I would just like to say from my perspective this was the best explained and straight to the point video I've seen. Subbed.

  • @radanmitasik8793
    @radanmitasik8793 5 років тому +213

    currently you are my main source of js exploration,still finding out new information..thank you for what you are doing

    • @WebDevSimplified
      @WebDevSimplified  5 років тому +26

      You're welcome! I am really glad my videos are helpful for you.

    • @DamianTew
      @DamianTew 3 роки тому +1

      I'm right there with you Radan!

    • @anjalichauhan5169
      @anjalichauhan5169 2 роки тому

      @@WebDevSimplified आप हमारे देवता हो 🙏

    • @zanngoc
      @zanngoc Рік тому

      Exactly the same here. This man is world-champion in this sport! :D

  • @levatruskavec2199
    @levatruskavec2199 4 роки тому +228

    01:23 - Destructuring Array
    02:35 - SPREAD Operator (Array)
    03:25 - SPREAD combaining
    04:10 - Functions
    06:35 - Object destructuring // Based on the key
    08:19 - SPREAD (Object)
    08:50 - Destructuring Nested Objects
    09:43 - Combine Two Objects
    10:42 - Inside Functions Inside Arguments
    ЗЫ (Don't thank)

  • @elle9834
    @elle9834 3 роки тому +8

    Your tutorials are super useful, the fact that they're quick means it only takes a few mins to watch them if you forget something and you never have some long exposition and always get straight to the point.
    Aka: 10/10 videos

  • @joqiao400
    @joqiao400 4 роки тому +10

    Somehow when I'm doing projects and get stressed watching your tutorials helps to calm down. I think it's that learning something from someone who really covey the concepts so clear help take the stress away. Really appreciate you doing this!

  • @brandonz404
    @brandonz404 3 роки тому +5

    I love how absolutely quick and concise all of your videos here. No matter what topic I need to learn about js or react I always check your channel first and you have it

  • @UltraHossBoss
    @UltraHossBoss Рік тому +4

    Hey man just wanted to drop a comment thanking you for the content. I've been developing for close to a decade now and your videos have been helping me brush up on some of the newer features of JS. You're awesome!

  • @pcimring
    @pcimring 2 роки тому +2

    Thanks, Kyle! Your videos are clear, to-the-point and engaging - and fill in the gaps that many other tutorials leave out or gloss over. Much appreciated!

  • @thejonellwood
    @thejonellwood 2 роки тому +2

    Dude!! I have tried to understand destructuring so many times! This is wonderful! It's clear and concise and I feel like I understand it now. Thank you so much for make this!

  • @jorge88824
    @jorge88824 4 роки тому +10

    One of the best channels based on web development. Amazing content and teaching skills. Great examples following the KISS principle. Keep it up, bro! +1 from Bulgaria.

  • @aleksarakic6023
    @aleksarakic6023 2 роки тому +2

    3 years later, still relevant, short, beautiful and simple! Thank you

  • @tanzeelahmed2055
    @tanzeelahmed2055 3 роки тому +4

    I never thought of gaining so much knowledge in 13 minute video!

  • @mozahedulislam1987
    @mozahedulislam1987 3 роки тому +5

    Where have you got this talent? Real genius. Its a masterpiece.

  • @heykike
    @heykike Рік тому +1

    man, this is 3 years old and still is really really reaaaally good!!
    Well and simply explained.
    Fast pace.
    Every little piece of detail covered... I regret not having found your channel before.
    Will check your courses - do you have a pay discord channel for Q&As ??

  • @datajames
    @datajames 3 роки тому

    Really like how you break it down into usable code, I'm a beginner and you've made it alot easier applying new code into my own projects. I can see progress everyday after watching your videos . Don't change the way you do things.

  • @av03
    @av03 4 роки тому +1

    I thought i learned all about destructuring until i watch this, my knowledge about this technique increases not only this one but the other things you share to us. As always thank you Kyle

  • @KennieDevCamp
    @KennieDevCamp 4 роки тому +3

    You’re really great with this Kyle. I thought I had learnt destructuring until I saw this. I love this video.

  • @jonathanmanner5396
    @jonathanmanner5396 2 роки тому +1

    This is... just beautiful, I mean I knew most of this existed, but the way you take advantage of these features is pure magic. I'm a beginner, but this will definately make me a little better :)

  • @keiwa11
    @keiwa11 3 роки тому +2

    Ouh, that feeling when you find a tutorial so spot on and amazing you wanna cry with happiness. Instant subscribe.

  • @zephyr_koryami
    @zephyr_koryami Рік тому

    I like how methodically he teaches this. Very easy on the mind, lets you have moments to take it in while he's breaking it down. While having a fluctuating voice can be annoying, and monotone can lull you to sleep, he has perfected the perfect speed and tonality of talking. At the end, when that bit of personality showed, that cracked me up, lol. this guy is so awesome.

  • @michaelshaw7652
    @michaelshaw7652 3 роки тому

    The best UA-cam channel on showing some cool feature in JS I've seen so far. Even a seasoned programmer will appreciate it.

  • @rpcarde
    @rpcarde Рік тому +1

    This guy always has the best tutorials. Easy, clear and simple to understand.

  • @suryaabbisetti2223
    @suryaabbisetti2223 3 роки тому

    I like how you're straight to the point. clear and concise explanation. Very good content man. You got a new subscriber.

  • @faisalhossain151
    @faisalhossain151 4 роки тому +8

    thanks for the tutorials! your voice is so soothing when listening to these tutorials, encourages me to do more web development :)

    • @WebDevSimplified
      @WebDevSimplified  4 роки тому +2

      That is awesome! I'm glad I can help motivate you on your journey.

  • @sandeepchauhan7918
    @sandeepchauhan7918 3 роки тому

    After using It so many times, now I got the clarity. Thank you, great explanation.

  • @NatalieFamula
    @NatalieFamula 2 роки тому

    thank you for your videos! I have been coding for years but always struggled to explain well to beginners. Seeing the way you present the information has helped me to mentor others 😄

  • @zenful-meditablesawing
    @zenful-meditablesawing 3 роки тому +1

    Your videos are so clear and concise, thanks man! This is the second time that watching this video has got me out of a React project stall.

  • @RameenFallschirmjager
    @RameenFallschirmjager 4 роки тому

    Hands down the best and most comprehensive explanation on destructuring out there.

  • @KJPrince
    @KJPrince Рік тому

    Best explanation of object destructuring I've seen. Thanks!

  • @rdmepicfail5722
    @rdmepicfail5722 Рік тому

    This is reeeally useful and clarifies a lot of coding i've seen or even used without fully understanding. Thanks a lot !

  • @josef2577
    @josef2577 3 роки тому

    Often when I search for a Javascript feature tutorial, this channel pops up at the top. Thank you so much for your effort.

  • @horacinis
    @horacinis 3 роки тому

    Thank you for taking the time to make these videos! You are great at explaining these concepts! Much appreciated!

  • @byronnyayiera1393
    @byronnyayiera1393 2 роки тому +1

    Best tutorial ever on destructuring seen in UA-cam 👏👏👏

  • @busyrand
    @busyrand 2 роки тому

    Very well done. I've only seen the technique used but never explained... I struggled to piece together Destructuring and the use of spread operators as something that worked for both arrays and objects. Thank you immensely.

  • @zelmasedano5070
    @zelmasedano5070 2 роки тому

    Amazing tutorial. Mentor told me to learn about Destructuring today and this was hands down the best video I found

  • @joanclarke2724
    @joanclarke2724 3 роки тому

    Great tutorial. Your explanations are always clear, precise and on point. I am so grateful for your videos. I appreciate them and I appreciate you! Thanks a ton!

  • @xuangelina5032
    @xuangelina5032 Рік тому

    What a genius!
    I have to comment to let you know how much I appreciate your lesson. It's so simple and easy to follow you're my God in programming. Thank you! (would not have appreciated it that much after watching 30' video again and again still did not get it until I found your video)

  • @knightmarerip711
    @knightmarerip711 2 роки тому

    You are the best! I just started reviewing JS, and that ... operator kept bugging me. I did not know what it was, nor did I know what it was called, and it was so difficult searching for ... Then out of nowhere, your video comes along for something else I was looking up and it included the SPREAD operator! OMG! This video just made my week!!! Thanx for this!!!

  • @bitetheapple8
    @bitetheapple8 Рік тому

    the best explanation I've seen so far on this subject. Thank you!

  • @umakhaitov
    @umakhaitov 4 роки тому

    One new Subscriber just joined. So far the best explanation about Destructuring ES6 I found. Thank you !

  • @lektimsina2132
    @lektimsina2132 4 роки тому +1

    Love your work man, your teaching style, very easy to understand.

  • @squeakycamp207
    @squeakycamp207 3 роки тому

    Very nice! This and many other of your videos have really helped me understand different concepts, that are not explained very well in a course that I am taking!
    Thank you!

  • @victorpinedo5121
    @victorpinedo5121 3 роки тому

    thanks bro, well done, there is so many youtube channels trying to explaing topics for ES6, but you style really likes so much.. regards

  • @plaguegames3556
    @plaguegames3556 3 роки тому +1

    Whenever I am stuck into something, I know that you have a short video somewhere that explains much clear than the long courses I get on Udemy.

  • @IanaCaldas
    @IanaCaldas 4 роки тому

    This is the best video ever about array and object destructuring! Thank you so much!

  • @ibraheemhajjar91
    @ibraheemhajjar91 2 роки тому

    I'm learning web development myself, and your channel is the best for me to understand anything from zero, many thanks for you and best of luck

  • @yahayaoyinkansola8258
    @yahayaoyinkansola8258 7 місяців тому

    Thanks Kyle for explaining this concept well, you really did a good Job

  • @shareenacruz7254
    @shareenacruz7254 3 роки тому

    I have never watched a tutorial that was easy to understand as this one. sooooo clear.

  • @Jordan-rv8gl
    @Jordan-rv8gl 2 роки тому

    Amazing content as always. You make complex topics seem simple af!

  • @SuperLefty35
    @SuperLefty35 2 роки тому

    Bro this was awesome. Been going over this for days and your 13 min vid cleared absolutely everything up thank you

  • @mchatin8862
    @mchatin8862 3 роки тому

    This is by far the best UA-cam channel for Javascript....Great content and always on point.....thanks man

  • @islandblue558
    @islandblue558 4 роки тому

    hey man , when you teach something its really hard not to learn it ;) you explain clear and thorough with tangible cleancut examples . i'm going to your react video tomorrow TY and keep it up bro :)

  • @xylesx
    @xylesx 5 років тому

    Thank you, I found this useful. :) Keep doing what you're doing! This channel should be more popular.

  • @bbcwccccc
    @bbcwccccc 3 роки тому

    thank you, reading about destructuring was so confusing and this really helped!

  • @sanghvian
    @sanghvian 3 роки тому

    Man you're just too friggin good at these !!!!!!!!!!!!

  • @LucXX36
    @LucXX36 5 років тому +3

    I thought I knew what Destructuring is. But there is so much more. Thanks for that!

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 2 роки тому

    I have a learned a new concept from your video demo. I found it very interesting. Thank you.

  • @Allsjr
    @Allsjr 5 років тому

    I was looking into this yesterday and you explained it better than all of the sources I looked at.

    • @WebDevSimplified
      @WebDevSimplified  5 років тому

      Thank you! I am really glad my video was able to resonate with you. I try to make my videos as informational and concise as possible while still being simple to follow.

  • @rebeccaindy
    @rebeccaindy 2 роки тому

    Amazing, as always! I really need to just takee time to watch all your videos.

  • @carlosl-f2433
    @carlosl-f2433 Рік тому

    Thank you. I just got back a bit of confidence in js...for react. You made it make sense.

  • @nicolasdupere
    @nicolasdupere 3 роки тому

    You are the only person who can teach and I understand 100% of what you explain. 10/10

  • @federicoprat9093
    @federicoprat9093 2 роки тому

    Was such a complicated topic for me. Now after this video I can say I understand it. Thank you very much

  • @adityakujur1724
    @adityakujur1724 3 роки тому

    Man, you videos are spot on, to the point and nicely explained with great examples.

  • @salmanZafar74
    @salmanZafar74 4 роки тому

    Very concise and to the point. Subscribed!

  • @muctar_s
    @muctar_s 3 роки тому

    Incredibly helpful explanation. Thanks WDS! :)

  • @bluelion978
    @bluelion978 2 роки тому

    Kyle you explain so well. Thanks for the work you put to help many people.

  • @spearbro
    @spearbro 3 роки тому

    Thanks, kyle! One of my favourite content providers

  • @lolcomment
    @lolcomment 4 роки тому

    Succinct and well paced. Really appreciate it dude

  • @shaheerarain50
    @shaheerarain50 2 роки тому

    Man! I love you, I've followed you since you have 500 subs.
    Now I am full stack MERN developer just because of you. Thank you buddy.

  • @fahmidhossainSakib
    @fahmidhossainSakib 2 роки тому

    i am just bombarded with varied amount of information from this video !

  • @iuliaf4402
    @iuliaf4402 Рік тому

    wow a course js made by you and at the end of each video an exercise sheet would help anybody unsterstand js. thank you!

  • @sohailfx
    @sohailfx Рік тому

    Thank you .... this is just the best new thing i learened in Javascript .. I wish you joy and happiness...

  • @alvaroprietovideos
    @alvaroprietovideos 2 роки тому

    Thank you for sharing, I love your videos. Sometimes, (like I did right now), I watch them several times!

  • @craurore
    @craurore 3 роки тому

    Great clear! And you in the little bubble is actually good, gives dynamic to the content.

  • @MrMarkgyuro
    @MrMarkgyuro 4 роки тому +1

    thank you, these are really useful and straightforward! : )

  • @Minimaos1
    @Minimaos1 4 роки тому

    You teach very clearly man. Awesome job.
    Thanks man!

  • @SoumyajitMandal
    @SoumyajitMandal 2 роки тому

    You are the by far best developer I have ever seen on UA-cam...

  • @gaudenzin
    @gaudenzin 2 роки тому

    This was remarkably well explained! Kudos to you

  • @talksister4496
    @talksister4496 3 роки тому

    Thank you very much for sharing your knowledge. I have spent ages trying to understand this, it has caused me so many headaches, I've lost count! Thank you for taking the time to make it simple, and confirming most things aren't difficult to understand. Your efforts and commitment clearly scream out that knowledge is everyone's right. Keep up the wonderful work, it is deeply appreciated, a final thank you - just in case I didn't express my gratitude enough - Roaring 👏👏👏👏👏👏 for you.

  • @kostiantynkarzhanov9216
    @kostiantynkarzhanov9216 11 місяців тому

    Simple and clear! Thank you! 💛

  • @iamkrishn
    @iamkrishn 3 роки тому

    This channel should have millions of subscribers!
    Amazing stuff Kyle! 🔥

  • @nicolaskorner9351
    @nicolaskorner9351 Рік тому

    This channel is a goldmine for every aspiring js/react developer

  • @thirteeenthstep
    @thirteeenthstep 2 роки тому

    Beautifully explained! Thank you.

  • @bernhardsmuts2265
    @bernhardsmuts2265 4 роки тому

    Very well explained Kyle! Thanks!

  • @TornadoTwins
    @TornadoTwins 2 роки тому

    This was very helpful, thank you. Very similar to "variable variables" in PHP. Awesome!

  • @ConsiderMeMilesDavis
    @ConsiderMeMilesDavis 3 роки тому

    Thanks for the great tutorial Zach Morris!

  • @Manny-ng9vo
    @Manny-ng9vo 2 роки тому

    You definitely so make the web simplified! Subbed :)

  • @kapilc
    @kapilc 3 роки тому

    You are such a gem. many thanks Kyle!

  • @TheCelecis
    @TheCelecis 3 роки тому

    Thank you for this video, short and simple. Really easy to understand

  • @andrewtcoder
    @andrewtcoder 2 роки тому

    Perfect explanation! Thank you very much!!!

  • @TheOptidude
    @TheOptidude 4 роки тому

    Thank you so much for having such clear explanations on all your topics. Please keep making these excellent videos....

  • @humbertogarcia9404
    @humbertogarcia9404 2 роки тому

    dude you're the best teacher on the world 👏🏽👏🏽👏🏽👏🏽 thanks for evrything

  • @knoir
    @knoir 4 роки тому +1

    Been coming back to this channel a few times now sometimes even if it isn't there on a google search :-) great concise format! just a question though about this video, how did you have javascript running from Code with the Chrome console?

  • @SilenceStabber
    @SilenceStabber 4 роки тому

    #1 Javascript knowledge source on UA-cam

  • @sagargahatraj5196
    @sagargahatraj5196 3 роки тому

    Most of the learners wants to know fast but be also 100% clear and believe me bro you are one those tutor who loves and does all the time 👍👍♥

  • @AlisaPopova-hb8bi
    @AlisaPopova-hb8bi Рік тому

    Love this tutorial😍Thank you💙