Javascript Default Parameters ES6 ES2015 tutorial

preview_player
Показать описание
Default and Optional Parameters for JavaScript Functions, ES6 and ES2015 way.

Article and code samples from this tutorial

Please be my patreons on patreaon

Follow me for technology updates

Help me translate this video.
Рекомендации по теме
Комментарии
Автор

Awesome. Really I was very afraid from JavaScript, didn't understood how to do coding. But you make my life easy. Thanks, God bless you.

mdzawaralam
Автор

I've been stuck on the idea of parameters for an entire day until I watched your video. Your videos are clear, succinct, and easily digestable. Thank you!

LenaHo
Автор

Good job. Found what I was looking for in 3:25. Thanks.

johnbritolima
Автор

I fell in love with JavaScript because of your videos . Thank you so much for that.
Here is a request. Could you please make a video on modules v/s components.
Thanks in advance

roopashree
Автор

Really helpful. I needed help with understanding arguments, and that’s what I got.

jacksto
Автор

So glad to see your content.It's very helpful.

thinker
Автор

Thanks great tutorial help me for sure.

deetee
Автор

What if we have function takes a complex object as param ? Example: add({a:10, b:{rate: 20}});
and in add(), logic is: a + obj.b.rate ?
Expected result: 30

josh
Автор

how do i reference the default object? add = ({a=3, b=3}={}) =>{ return a + b}

Albertmars
Автор

Thanks for this video. Please keep making such videos.

Nikhilkumar-qdoq
Автор

Thank you for making another awesome video and sharing it with all of us! I always give your videos in nice thumbs-up and of course I am subscribed. I am still struggling with the spread operator, I suspect it has many uses if I could wrap my head around it a little better.

ErnestGWilsonII
Автор

In 2:30 you need to be carefoul.

let add = (a, b) => {
a = a || "dog"
console.log(a, b);
}

add("", "cat"); //"dog, cat", I expected: ", cat"
add(0, "cat"); //"dog, cat", I expected: "0, cat"

Example from 1:50 is safer

marcindomanski
Автор

Please create a tutorial on Web components VS (Angular components or React components ect.)

prathipatipurna
Автор

x=[{1, 2}, {3, 4}, {5, 6}] how to add elements

avinashbr