Value vs Reference in JavaScript in 1 Minute

  Рет қаралды 51,113

ColorCode

ColorCode

Жыл бұрын

Full video: • JavaScript Value vs. R...
JavaScript Copy by Value vs. Copy by Reference.
This is episode 10 in a 10 part series I’m calling 10 things javascript. Today for episode 10, we’re looking at the difference between Primitives and Objects. Episode 10: Value vs. Reference. Let’s go!

Пікірлер: 38
@hamsaebrahim8
@hamsaebrahim8 Жыл бұрын
I love this content
@ColorCodeio
@ColorCodeio Жыл бұрын
😃
@nabilashafa7817
@nabilashafa7817 Жыл бұрын
4: Error 404, 4 not found
@ColorCodeio
@ColorCodeio Жыл бұрын
Nice
@sk8ns4life
@sk8ns4life Жыл бұрын
Some of the better short form dev content I've come across.
@boem231
@boem231 Жыл бұрын
Technically null is an object, but it goes by value. typeof null === 'object'. And NaN (not a number) with the type number, is a primitive, but goes by reference. So there are a few exceptions to this rule
@UrekMazlno
@UrekMazlno Жыл бұрын
I love your youtube shorts. One thing I would suggest though is put the link of the full video in the comments so it can be readily accessible.
@ColorCodeio
@ColorCodeio Жыл бұрын
Good suggestion 👍
@bishalkarmakar1376
@bishalkarmakar1376 Жыл бұрын
Point 4 is on vacation.
@ColorCodeio
@ColorCodeio Жыл бұрын
hah
@andreaslassak2111
@andreaslassak2111 Жыл бұрын
Awesome !! best channel to learn javascript
@ColorCodeio
@ColorCodeio Жыл бұрын
Thanks a lot
@pickup-tech5273
@pickup-tech5273 Жыл бұрын
Nice dear sir
@FlyingCorkscrew
@FlyingCorkscrew Жыл бұрын
Nice 👌
@shadbkhat132
@shadbkhat132 9 ай бұрын
Great content but really sorry about background music disturbs.
@Yawarr
@Yawarr Жыл бұрын
Lovely explanation, thank you.
@ColorCodeio
@ColorCodeio Жыл бұрын
👍
@sahiraahamed
@sahiraahamed Жыл бұрын
Amazing.. 👏
@Arran_Paul
@Arran_Paul Жыл бұрын
Thank you
@hamadsherazi6896
@hamadsherazi6896 Жыл бұрын
I loveeeeee thus content boy
@hadawardgz
@hadawardgz Жыл бұрын
Fun fact: *typeof* keyword is broken and says *null* is a object tho it's not, u can't assign properties to null. *typeof null === "object";* // true
@trivedi2690
@trivedi2690 Жыл бұрын
So how can we check this thingh .
@Venaber
@Venaber Жыл бұрын
Thanks
@gdmathguy
@gdmathguy Жыл бұрын
I have dealt with that in a game I'm programming. Isn't that hard to fix the addressing problems
@Tanner_Goodale
@Tanner_Goodale Жыл бұрын
Could you create a checksum of two objects by hashing them and comparing their hashed values to determine equality? That's the first thing that comes to mind for me, though I'm sure there are more efficient ways to handle it.
@soniablanche5672
@soniablanche5672 Жыл бұрын
One funny suggestion is to use JSON.stringify to compare 2 objects, but this won't work if the objects has functions in them.
@abdulrasheedibrahim382
@abdulrasheedibrahim382 Жыл бұрын
Technically, everything in JavaScript is an object.
@lex-zt6uc
@lex-zt6uc Жыл бұрын
Had a question If thier is a object like a with value 5 And b with a value 5 too So does both refer to a same place And if it does will changing b affect a?
@tjtechi4448
@tjtechi4448 Жыл бұрын
very great content, video editing and overall presentation. But please remove the background noise. Thank you. I just found out about your channel and it's a great ride so far.
@ColorCodeio
@ColorCodeio Жыл бұрын
Thanks
@sulaimanatayi555
@sulaimanatayi555 Жыл бұрын
nice
@mitkomilev4690
@mitkomilev4690 Жыл бұрын
Aren't symbols primitives too? And bigInt 🤔
@juanpablocastrohurtado2088
@juanpablocastrohurtado2088 Жыл бұрын
is it possible to print the memory reference from an object?
@alext5497
@alext5497 Жыл бұрын
Lol
@hardiknadiyaparanadiyapara7635
@hardiknadiyaparanadiyapara7635 Жыл бұрын
👍👍👍
@samuelbuer8683
@samuelbuer8683 11 ай бұрын
Thanksgiving ❤
@ColorCodeio
@ColorCodeio 11 ай бұрын
Same to you!
@florinflorin2877
@florinflorin2877 Жыл бұрын
string and numbers are definitelly not primitives in js, these are objects too (you can extend them, call functions on them)
Async Await vs. Promises - JavaScript Tutorial for beginners
24:30
JavaScript Higher Order Functions in 1 Minute #shorts
1:00
ColorCode
Рет қаралды 87 М.
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН
Does size matter? BEACH EDITION
00:32
Mini Katana
Рет қаралды 20 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 1,1 МЛН
🤔Какой Орган самый длинный ? #shorts
00:42
The Java Memory Model - The Basics
23:41
Jakob Jenkov
Рет қаралды 122 М.
Generics: The most intimidating TypeScript feature
18:19
Matt Pocock
Рет қаралды 167 М.
JavaScript Promises: Mastering Asynchronous Programming with Confidence | Freshtutorz Malayalam
22:34
Improve your Speaking and Conversational skills with me / English Speaking Practice
8:01
JavaScript - Reference vs Primitive Values/ Types
20:56
Academind
Рет қаралды 151 М.
How does a browser work ? | Engineering side
30:22
Hitesh Choudhary
Рет қаралды 77 М.
Closures in JS 🔥 | Namaste JavaScript Episode 10
22:44
Akshay Saini
Рет қаралды 785 М.
Top 25 JavaScript Interview Questions for Beginners
50:26
Interview Happy
Рет қаралды 289 М.
Cool Items! New Gadgets, Smart Appliances 🌟 By 123 GO! House
00:18
123 GO! HOUSE
Рет қаралды 17 МЛН