ECMAScript 6 / ES6 New Features - Tutorial 4 - Spread Operator

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

I can't believe what ana amazing teacher you are. You make it so fluent, coherent and simple. Kudos, mate.

guybibi
Автор

I learnt PHP from you. Had been procrastinating learning es6.. BUT not anymore!! lots of love Bucky!! <3 #rolemodel

priyaharish
Автор

Bucky I freaking love your vids!!! This solves the problem I have been having recently! Thanks yet again for the many years of great content :-)

CitadelOfLukes
Автор

BUCKY. I fricken learned to code from you and I suppose got pretty dang far in my career. Accomplished all my childhood dreams.. FROM YOU. Literally..

BUT. even at a dope level and feeling like i can learn anything on my own and theres not much to gain from your content I CANT STOP watching your stuff whenever i come back..

There is something about your voice that makes everything seem ok and simple. F*CK, come back. THis is your calling. Evolve when you come back if you need a change.

Your TOO dam gifted at this man. I became a professional dev at like 19 because of you... now could get into google or anywhere AND I GOT straight Fs in highschool/college. If it literally werent for you I'd have actually been a failure in life. I can only imagine how many others you impacted.

YOU MUST FIND A WAY TO COME BACK. I would love to help you on the business end too since thats what i got into my friend.


love you no matter what though. keep being you

sotacan
Автор

thanks buddy you made it easier for wth the great work

jamalhassan
Автор

great vid, straight to the point - thanks

AniDormi
Автор

bacon and ham lol gotta love Bucky dudes a legend

dariussturge
Автор

This is way too simple and shorter than other videos. Really awesome content !!

streamcoders
Автор

Now what if number of parameters of the function does not match the array length?

TheRooflmao
Автор

annoying I can't get the spread operator to work in webstorm. I'm using es6 and have the babel watcher running but it keeps throwing an error, any tips Bucky?

draakisback
Автор

Example 1 (function pulling arguments from an array)
1:17 Completed traditional code
1:42-2:06 (ES6)

Example 2 (insert all the elements of one array into another, at any index)
3:35-4:09 (ES6)

climbers
Автор

1:30 You could addNumbers.apply(null, nums) too FYI ;)

howard
Автор

Could you please make the font bigger in future videos :D

abaR
Автор

1st example is not a good one. It was possible to spread array as arguments to function/method before. And as a bonus, it was possible to calling it under specific scope via funct.apply(scope, [argsArray]) like:
function addNumbers(a, b, c) {
   console.log(a + b +c);
}
var nums = [3, 5, 7];
addNumbers.apply({}, nums);

soco
Автор

should we add it in function or it is not necessary?

kayan_dev
Автор

Hey Bucky! ever heard this saying "one man's meal is another man's poison" ?

daylyght
Автор

bacon and ham are the best meats in the world! come on :(

lcbrrji
Автор

just food for thought
eval(array.join("+"))
var meats = ["bacon", "ham"]
var food = ["apples", meats, "Kiwi", "rice"]

darkknight
Автор

I will pay $1000 -> 366, 000 Naira if you'll have a premium course

Trader-A
Автор

oh another 'clacky keyboard vid'!

ChetBABY