JavaScript Value vs Reference Types

preview_player
Показать описание
JavaScript Value vs Reference Types

Subscribe for more videos:

Want to learn more from me? Check out my blog and courses:

Рекомендации по теме
Комментарии
Автор

My family is from Hamedan...Love your explanation of this topic really simplified, clean, and straight to the point.

AriKariG
Автор

No matter the amount of articles you have read, Mosh will always teach you something new and useful.Awesome teacher, thanks Mosh.

sodiqayilara
Автор

great explanation, very clear, straight forward. Help me a lot, thank you very much!

lynnqi
Автор

Clear, Concise, Straight to the point. Your video helped me grasp the concept quickly.

Navistar-cupo
Автор

value vs reference was driving me crazy but this video absolutely helped me. thank you for the explanation

ceddh
Автор

very straightforward and easy to understand! thank you!

han
Автор

Wow, I didn't know that. I really need to improve my JS.

NoahNobody
Автор

VERY nice explanation. Simple and to the point. Thank you!

aaabbb-qvff
Автор

FANTSTIC explanation! You're brilliant man! Hit home in first stroke!

EnglishRain
Автор

Excellent, concise explanation. Thank you, Mosh!

sdix
Автор

this is excellent, im reading a "well regarded" book at the moment and its like double dutch compared to this simple explanation... thanks mate.

progtom
Автор

Another underlying principle worth mentioning here for the example starting at 3:05 is called "variable shadowing". Because our inner variable's name is the same as the outer variable's, a variable in the inner scope is said to shadow a variable in the outer scope. That is why we cannot re-assign a value assigned to a global variable.
However, if you tweak this example a little bit:

let number = 10;
function increase() {

number++;
}

increase();
console.log(number);

So, here we are not passing in any arguments and therefore a value in the global variable can be re-assigned.

anyakhardina
Автор

this explanation helps with every programming language, also one can learn about this fundamentally with C, great content.

nourslimane
Автор

Thanks sir. This was hard to get my head around til i watched this.

danielakoyleek
Автор

thank you, simple and to the point :)

a_maxed_out_handle_of__chars
Автор

Why are you so awesome at explaining. Please make more on Angular7 and JS

DS-zrgv
Автор

you've made it very simple, thanks.

abdelkrimeljaouhari
Автор

Very useful Tutorial !
Thanks a lot :D

ablamohamedamine
Автор

ooohhh, That was a very clear example. Thanks.

rohitkudalkar
Автор

love you your videos very good explanation.

ahmedabbas