JS Spread Operator: How It Works & Why I Love It

  Рет қаралды 75,867

Colt Steele

Colt Steele

Күн бұрын

In this video I talk about one of my favorite ES2015 features: the spread operator. We discuss the three main use cases for spread, as well as how spread relates to immutability and tools like React.
Find the Notes Here: www.notion.so/The-Spread-Oper...
Coupon For My React Course: www.udemy.com/modern-react-bo...
If you're ready to launch your career as a software engineer, check out my job-guaranteed bootcamp with Springboard: springboard.com/workshops/sof...

Пікірлер: 260
@swanand1161
@swanand1161 4 жыл бұрын
Awesome video! One thing I would like to state which may be handy to anyone reading: When we have two different objects with the same “key” the new object overrides the key of the previous one. for example : const lion = {"big":"cat",legs: 4}; const eagle = {"big":true, "type":"bird"}; case 1: const someobj = {"name": "Swanand", ...lion, ...eagle}; this will print someobj = {name: "Swanand", big: true, legs: 4, type: "bird"} case 2: const someobj2 = {"name": "Swanand", ...eagle, ...lion}; this will print {name: "Swanand", big: "cat", type: "bird", legs: 4}
@yuhceeofficial
@yuhceeofficial 4 жыл бұрын
I enjoy your videos, notes, humor, you, your pets, everything about you. Thanks for clarity in teaching and always simplifying concepts.
@ColtSteeleCode
@ColtSteeleCode 4 жыл бұрын
Thanks Egbo, I really appreciate it. Let me know if there any topic you'd like to me cover!
@yuhceeofficial
@yuhceeofficial 4 жыл бұрын
Thanks so much for replying me, i took your web developer course last year and it gave me a great perspective into understanding JavaScript and till date all i know and are in programming is all down to you. Your only courses i don't have now is the ones you're still working on. You're my hero and i sincerely want to grow and help people like you do someday. I am still learning but think that what will help me most now is ways to land my first job. If you can do anything along that line of how am going to go about it, I'd appreciate it so much. Algorithms scare the Shit out of me to even but am improving everything with your algorithm course. Thanks.
@gitarthakashyap8519
@gitarthakashyap8519 4 жыл бұрын
@@ColtSteeleCode where can i get more notes like this
@nostalgiccringeallhailchel3881
@nostalgiccringeallhailchel3881 Жыл бұрын
It's called having a crush
@Mitsunee_
@Mitsunee_ 4 жыл бұрын
as someone who constantly relies on MDN having additional notes/documentation on anything, especially if written by someone who knows what they are talking/writing about, is invaluable.
@pcost
@pcost 4 жыл бұрын
So it is the first time ever (since 2006) that I see a video on KZbin with over 1000 likes (and I was the 1000th!!) and zero dislikes. That really means something about you, Mr. Steele. You rock! Keep doing it.
@thomjorke
@thomjorke Жыл бұрын
oh my goodness, I have done two full React courses and have always been so confused by the spread operator. Have watched many other videos and read documentation that did not click but your video really solidified it! THANK YOU
@umangbhatnagar1415
@umangbhatnagar1415 2 жыл бұрын
Oh Lord you are the best. I bet no one ever has over the entire web explained to that detail the damn spread operator... Thanks a lot, you made my day!! job well executed!!
@harrazmasri2805
@harrazmasri2805 Жыл бұрын
i was stunned the first time i saw this before a competition, took me months more to fully grace everything
@Frest99
@Frest99 3 жыл бұрын
I don't understand too much when anyone speaks in English but you are very clear. Thank you for the explanation!
@lalosalamanca1208
@lalosalamanca1208 2 жыл бұрын
The "Spread Eagle" reference had me rolling. Great video. Very informative! Thanks again for all you do for the coding community!
@Justin73791
@Justin73791 Жыл бұрын
Just want to say, this is an awesome tutorial with a ton of effort behind it. Well done!
@ts3798
@ts3798 4 жыл бұрын
You are easily the best online teacher out there.
@skepticacid
@skepticacid 4 жыл бұрын
Gosh, this is so thorough and well-paced. The only explanation I needed. Thanks Colt!
@DavidVCastro
@DavidVCastro 2 жыл бұрын
I saw the spread operator being used in Maximillian Schwartzmuller's Ionic Udemy course, and tried to read an explanation of it. That wasn't working, so I found your video, and you cleared it right up for me! Thank you!
@mohammadhoque2295
@mohammadhoque2295 4 жыл бұрын
I don't know why someone disliked this (2 people)? This is a great explanation and comes with the blog post to reference later. Obviously Colt put time and effort in this for others to understand this concept. I really like that you have the notes for me to reference later on. I will reference your video on my blog. Thank you for the nice video.
@Rino37
@Rino37 3 жыл бұрын
Thank you for this informative video. As a new programmer currently drinking from a firehouse in a boot camp, I found this very helpful.
@armaanpathan1856
@armaanpathan1856 4 жыл бұрын
Hey Colt, just getting addicted to your teaching dude !! Thank you for the amazing contents you create for us .
@marlynch
@marlynch 4 жыл бұрын
Grateful for the video, and appreciate the notes, too. The MDN explanations are often dense and inscrutable, and I'm glad you take the time to deconstruct the definitions and explain them in ways I grasp rapidly. Completed your Web Developer Bootcamp course and was amazed at how well you explained and demonstrated everything. Next up: the Advanced course! Thanks for all of it, Colt!
@josiahbaumgartner7643
@josiahbaumgartner7643 4 жыл бұрын
I was having a hard time understanding spread from the MDN documentation so I looked for a video explaining it. This one wasn't the first on the list but it looked like it was the highest quality one on the first page so I clicked it and I'm really glad I did! This video was great and I feel like I understand spreads very well after just one watch!
@emmanuelfabiani8435
@emmanuelfabiani8435 3 жыл бұрын
Colt Steel is synonim of clarity, professionalism and solid knowledge which is passed on in the most gracious way! Thank you for all you do and for your notes, they are brilliant!
@christinavoudouris
@christinavoudouris 4 жыл бұрын
Thank you Colt - fantastic video! Great balance of showing practical examples and explaining the "why" behind everything. I bookmarked your notes too :)
@mariiatkachova570
@mariiatkachova570 4 жыл бұрын
Your videos are great! Keep up! I like that you show how well-rounded you are by mentioning art and TV-shows!
@CraftishFX
@CraftishFX 4 жыл бұрын
Really love your courses and videos Colt! Also i find the notes very helpful, please keep making them.
@ga7853
@ga7853 4 жыл бұрын
I think you are the best one who explained the spread operator, Thank you so much for this tutorial
@magdasokolovic
@magdasokolovic 3 жыл бұрын
the best explanation of spread operator I've seen. Thanks for the great content
@amymerrill5815
@amymerrill5815 4 жыл бұрын
Love your videos and teaching! I am taking your js course. Looking forward to your react course. I appreciate your notes! Thank you for all your hard work!
@andreirobert18
@andreirobert18 11 ай бұрын
You are the best teacher there is! Thanks for making my life better!
@teenytinytoons
@teenytinytoons 3 жыл бұрын
definitely one of your best videos colt. great explanation with good examples and good pacing.
@WrestlingTournamentsDotCom
@WrestlingTournamentsDotCom 3 жыл бұрын
Very helpful. I've tried to learn spread a few times, but I think this will still now, thanks.
@growthascendant4689
@growthascendant4689 2 жыл бұрын
Delightfully informative is how I describe your teaching style. I'm learning a lot and I'm laughing a lot. Great stuff. 💯
@gfmoore
@gfmoore 2 жыл бұрын
Fantastic. Wonderfully easy to understand explanation and delivery. Top man.
@joanclarke2724
@joanclarke2724 4 жыл бұрын
Thanks for the video, it simplified the spread operator concept a great deal for me and I really appreciate your thorough notes.
@damin1916
@damin1916 2 жыл бұрын
I love that you use a lot of examples, really helped a lot!!!!
@riyadhossain1706
@riyadhossain1706 2 жыл бұрын
the notes are really helpful, please don't stop making notes. Thank You
@kentaasakura8230
@kentaasakura8230 Жыл бұрын
First time watching one of your tutorials, and I found your tutorial easy to understand. Thank you for contributing in the developer society 🙏
@joshualawson7604
@joshualawson7604 4 жыл бұрын
I haven't seen anyone explain this as well as you have. Great job!
@mocktarissa
@mocktarissa 4 жыл бұрын
A video without dislikes on youtube. This shows how much we needed it. Thanks Colt
@DUANEYAISER
@DUANEYAISER 4 жыл бұрын
Thank you! Just an hour ago, I was using your boot camp lessons to add flash to my own project. :-)
@AndresMenaSimba
@AndresMenaSimba 4 жыл бұрын
Please keep making videos like this. Extremely helpful.
@satheshkumar5906
@satheshkumar5906 2 жыл бұрын
thank you, its always nice to have the notes part for reference
@danielbroe5390
@danielbroe5390 4 жыл бұрын
Keep them notes coming! Helping me a lot.
@souptiksarkar3636
@souptiksarkar3636 3 жыл бұрын
Your notes are super useful, please keep writing them.
@RahulSharma-oe6fy
@RahulSharma-oe6fy Жыл бұрын
Thanks Colt! It's one of the most extensive video on the topic. Helped me a lot!
@RahulSharma-oe6fy
@RahulSharma-oe6fy Жыл бұрын
I have bought the react course too from Udemy . Can you update it to the latest version ? Facing some issues with projects
@alexander5052
@alexander5052 3 жыл бұрын
Nice! After 5 minutes watching everything got much more clear. Thank you!
@shashanksshetty9870
@shashanksshetty9870 4 жыл бұрын
Great videos, liked the important and covered all most all aspect of spread operator. Hoping for more such videos in future.
@comrade4664
@comrade4664 2 жыл бұрын
Thank you, very complete guide and even managed to help me understand react, which I am studying right now
@firstworldproblems5477
@firstworldproblems5477 4 жыл бұрын
The notes are great. They are very useful. Thanks for all of your content.
@zdargahi
@zdargahi 2 жыл бұрын
hey Colt. I love the Notion notes. Thanks for awesome video
@robertjohnstevens
@robertjohnstevens Жыл бұрын
Excellent explanation of the Javascript spread operator. Thank you very much!!!
@carolinazamora9004
@carolinazamora9004 2 жыл бұрын
I understood this thanks to you, thank you for being so clear and thorough !
@russaanderson
@russaanderson 4 жыл бұрын
Thanks - this is great information! YES, the notes are very helpful - keep up the good work!
@dndLeitch
@dndLeitch 3 жыл бұрын
bro you are really good at this keep it up, it is helping me loads!
@mrinaltewary
@mrinaltewary 3 жыл бұрын
Your Notes are awesome................ keep helping us......
@kiyahp12
@kiyahp12 3 жыл бұрын
Your notes are very helpful. Thanks for the video!
@alexotoous
@alexotoous 2 жыл бұрын
you are one of my best teachers in web development. I would love to see more of your teachings on youTube. I have most of your Udemy courses
@animanoir
@animanoir 4 жыл бұрын
the first example is amazing. thank you.
@gkmchardy4
@gkmchardy4 3 жыл бұрын
Notes are VERY useful and much appreciated.
@dieegocastrof
@dieegocastrof 3 жыл бұрын
Hey Colt! :) Just letting you know that your explanations are super clear! Thanks for that. Also, the Notions notes ARE SUPER USEFUL! I can attach them to my own Notion that I'm building about JS so I have quick access to them, I know they should take time, but if you can keep doing them in your videos would be GREAT !! Thanks again :)
@Nicole-cs2vz
@Nicole-cs2vz 3 жыл бұрын
This was an excellent explanation. I needed something to supplement the es6 lessons on freeCodeCamp, and this video did the trick!
@J3ffMusk
@J3ffMusk 4 жыл бұрын
Thumbs up just after 1min due to the notion notes. Love the idea!
@jsblade2770
@jsblade2770 2 жыл бұрын
you cleared up all the confusion in my brain, great explantation tahnk you!
@andrenireri5252
@andrenireri5252 4 жыл бұрын
This solves a lot of problems for me. Thank you!
@cubedev4838
@cubedev4838 3 жыл бұрын
Seriously i love this kind video :) i always have problem with this operator especially in react...thanks a lot. Really nice video when u can simplify that common confusion :)
@VladimirJovana
@VladimirJovana 4 жыл бұрын
Thanks Colt, beautiful and dead easy to understand&implement explanation!
@igornikonov9641
@igornikonov9641 4 жыл бұрын
Simply an awesome video :)) Lots of new useful information delivered in a concise and entertaining way.
@sexyeur
@sexyeur 4 жыл бұрын
Can also inexpensively _gift_ Colt's exhaustive self-paced course to someone you know... _Highly_ recommended.
@balajeemishra
@balajeemishra Жыл бұрын
This video is one of the best video I found on KZbin.. Please make this type of videos.😊
@randallfine7934
@randallfine7934 4 жыл бұрын
Great video. I lost it at spread-eagle 🤣
@jamesmassa1999
@jamesmassa1999 3 жыл бұрын
Very well done, and the notes are a great additon!
@marcelnunez1658
@marcelnunez1658 3 жыл бұрын
Love your style of teaching, subbed
@lemueljunior
@lemueljunior 4 жыл бұрын
Best spread operator tutorial ever! Thanks for sharing your knowledge in a simple and easy to understand way. =)
@kal5211
@kal5211 2 жыл бұрын
Notes were helpful! Thank you!
@espinozaja81
@espinozaja81 3 жыл бұрын
awesome video i also like the notes. makes it really easy to reference the material
@duuhhveeed
@duuhhveeed 4 жыл бұрын
I’m working on a react final project for a boot camp and this gave me some really good pointers, concise as always Colt!!
4 жыл бұрын
Can i ask you which bootcamp you are in ? and are you happy with the education they gave?
@duuhhveeed
@duuhhveeed 4 жыл бұрын
I went to a trilogy camp at UT Austin and it was pretty good I learned more then I would have on my own but they need to work on prices cause it was pricey being also the cheapest at 12k. I got a job 2 mo afterwards it’s not big pay but a start. I suggest going in with some knowledge prior. Hope this helps!
@wazzadev7209
@wazzadev7209 4 жыл бұрын
Thanks for this i've been learning react lately and this just clarified a lot
@cezargheorghiu2606
@cezargheorghiu2606 3 жыл бұрын
Same here :)
@snowfall1984
@snowfall1984 3 жыл бұрын
Thank you. Very clearly explained the spread operator.
@chips-n-salsa
@chips-n-salsa 2 жыл бұрын
thank you for this video. spread operator makes a lot of sense now
@ninjachickn
@ninjachickn 4 жыл бұрын
Not only do I love Notion, but the notes are very helpful
@ColtSteeleCode
@ColtSteeleCode 4 жыл бұрын
I'm obsessed with Notion! Love that it supports code syntax highlighting and embedded gists. I wish I was on the Notion dev team :)
@ricardorien
@ricardorien 3 жыл бұрын
Hey man, thanks for your notes and video! greetings from Venezuela.
@powerup4016
@powerup4016 4 жыл бұрын
Thank you for this video. Helped me grasp why two inputs using the same useState need a spread op ... for the onChange event in the setState(...state, e.target.value). Going to have to go back and see if you cover it in your React Course. Thank you again!!
@LIMLIMLIM111
@LIMLIMLIM111 3 жыл бұрын
I am hooked. Great explanation.
@eduardocarvalho4232
@eduardocarvalho4232 3 жыл бұрын
Very good explanation! Thank you, the notes helped a lot :D
@bobbydonchev2217
@bobbydonchev2217 4 жыл бұрын
Dude you are awesome, please keep the notes!
@mohamadomran13
@mohamadomran13 4 жыл бұрын
Great job dude! p.s: the notes are really helpful, so please don't ditch them :P
@ricardotlatelpa8868
@ricardotlatelpa8868 4 жыл бұрын
Thanks Colt Steele super helpful! bought your React Bootcamp too!
@voltairinedecleyre
@voltairinedecleyre 4 жыл бұрын
Thank you! The notes are great, way better than MDN
@abh6967
@abh6967 4 жыл бұрын
Clear and pawsome as always!
@roshanbhusal2505
@roshanbhusal2505 2 жыл бұрын
I was so confused, this helped a lot.
@holgate19
@holgate19 3 жыл бұрын
this is great, so clear - thanks for the video!
@RaajKanchan
@RaajKanchan 4 жыл бұрын
10:48 Take a bow! You nailed it. Thank you for sharing...
@BobbyBundlez
@BobbyBundlez 3 жыл бұрын
or smoke a bowl! You earned it! 420 blaze it brooooooo :)
@warlock257
@warlock257 4 жыл бұрын
This greatly clarifies an unknown I've had in my head for months.
@chamnil8666
@chamnil8666 4 жыл бұрын
Thank you so much sir,this is really helpful,i read the article too,so useful,thanks again.
@athanadrian
@athanadrian 4 жыл бұрын
Tnx for the notes. They are great and very useful.
@dffkll3058
@dffkll3058 4 жыл бұрын
Prepares me a bit for my new job. Thank you!
@dhanushkafernando6316
@dhanushkafernando6316 4 жыл бұрын
woow best explanation for this topic .Thanks colt
@GermanBlueMax
@GermanBlueMax 3 жыл бұрын
I was laughing at your speed reading of the MDN definition. That is exactly how I felt when I went to read about spread syntax initially lol
@9997eman
@9997eman 4 жыл бұрын
your one of the best teachers!
@Joshua-rk7bl
@Joshua-rk7bl Жыл бұрын
Great video! Thanks for helping me understand this!
@bripowered
@bripowered 4 жыл бұрын
Thanks, Colt! Very useful.
@RahulRaj-on8js
@RahulRaj-on8js 9 ай бұрын
awesome quality of content and explanation ❤
@maheromri4587
@maheromri4587 Жыл бұрын
First time i see your videos then i should subscribe ... amazing explanation
JS Arrow Functions: Everything You Need to Know
20:23
Colt Steele
Рет қаралды 31 М.
Why Is Array/Object Destructuring So Useful And How To Use It
13:24
Web Dev Simplified
Рет қаралды 419 М.
Whyyyy? 😭 #shorts by Leisi Crazy
00:16
Leisi Crazy
Рет қаралды 19 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 13 МЛН
Чай будешь? #чайбудешь
00:14
ПАРОДИИ НА ИЗВЕСТНЫЕ ТРЕКИ
Рет қаралды 2,9 МЛН
Complete Guide to JS Sets: How They Work & When To Use Them
18:38
The JavaScript Spread Operator  -  One Thing You DIDN'T KNOW!
9:20
James Q Quick
Рет қаралды 25 М.
Learn Git In 15 Minutes
15:59
Colt Steele
Рет қаралды 2 МЛН
5 JavaScript Concepts You HAVE TO KNOW
9:38
James Q Quick
Рет қаралды 1,4 МЛН
...spread operator and rest operator - Beau teaches JavaScript
6:58
freeCodeCamp.org
Рет қаралды 152 М.
The JS Call Stack Explained In 9 Minutes
9:30
Colt Steele
Рет қаралды 85 М.
Master JavaScript Array Reduce Method In 10 Minutes
10:51
Colt Steele
Рет қаралды 7 М.
Настоящий детектор , который нужен каждому!
0:16
Ender Пересказы
Рет қаралды 288 М.
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 12 МЛН
📦Он вам не медведь! Обзор FlyingBear S1
18:26
DC Fast 🏃‍♂️ Mobile 📱 Charger
0:42
Tech Official
Рет қаралды 481 М.
Mi primera placa con dios
0:12
Eyal mewing
Рет қаралды 719 М.