JS Interview - dot notation vs square brackets - Question 12

JS Interview - dot notation vs square brackets - Question 12

9,124 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@apex-lazer
@apex-lazer - 29.10.2023 22:57

You are gold. Seriously. You somehow make things click and are so easy and enjoyable to listen to and learn from. ☝️

From the bottom of my heart. Thank you brother 🙏

Ответить
@sashab4432
@sashab4432 - 14.04.2022 19:48

The reason why last one won't work is because the last 'castiel' is not a string. it's 'value' is undefined. so it will search by its value, & not by its name. We need to search by its name. So if we search it as a string 'castiel', then we will get the result.

Ответить
@kamalsharma2839
@kamalsharma2839 - 24.03.2022 21:26

Why Castiel would be undefined in last one ???

Ответить
@elilumilay9405
@elilumilay9405 - 21.02.2022 16:23

Such a calm voice. Perfect for a coding professor! :D thank you Steve. I came here after encountering a same topic in freecodecamp

Ответить
@hiro6164
@hiro6164 - 07.11.2021 03:49

nice

Ответить
@wambuafredrick6881
@wambuafredrick6881 - 22.06.2021 23:19

The voice instills the knowledge :)

Ответить
@leroyal8510
@leroyal8510 - 05.05.2021 22:44

Woah! I love programming and I love SUPERNATURAL too!

Ответить
@liberato09
@liberato09 - 26.03.2021 02:33

Wow that was really well explained. thx my dude. your dog ear slapping in the background cracked me up at the end

Ответить
@JohnDoe-rj2kf
@JohnDoe-rj2kf - 24.03.2021 21:46

Dammit Sammy!

Ответить
@johnclampet4497
@johnclampet4497 - 02.03.2021 01:40

Just made my life a lot easier... just started in Javascript yesterday
I also appreciate the Supernatural reference!

Ответить
@nicolaregiacorte8328
@nicolaregiacorte8328 - 03.02.2021 15:42

Right to the point as always, thank you good Sir! =)

Ответить
@VladimirDevyatoff
@VladimirDevyatoff - 15.01.2021 13:21

Well explained but I'm obviously to retarded to get it. O_0
Why are those props equal: dean['mary'] and sam.castiel?
dean['mary'] refers to the key of the dean-Object and sam.castiel to the sam's-Object key in my sense.
Why it will be accessing to props of both objects through the dean-Object every time and why does it work? ^^

Ответить
@doniaelfouly4142
@doniaelfouly4142 - 08.01.2021 17:47

thanks

Ответить
@mattparkinson3954
@mattparkinson3954 - 30.12.2020 14:48

Thankyou for this simplified explanation, really helpful! I shall be subscribing and watching more of your videos.

Ответить
@mohpish
@mohpish - 05.12.2020 19:01

Amazing explanation... couldn't do anything else but to subscribe... thank you

Ответить
@EugeneVilder
@EugeneVilder - 30.11.2020 02:21

I'm a fan of Supernatural too :) Dean rules...
Tnx for your videos.

Ответить
@eminm6383
@eminm6383 - 11.10.2020 03:41

very nice & clear explanation. Loved.

Ответить
@abdulazeezatanda2371
@abdulazeezatanda2371 - 24.06.2020 22:19

Do you use an extension on VSCode that makes your triple equals === and arrow notations => show differently?

Ответить
@aricwilliamsdeveloper
@aricwilliamsdeveloper - 14.06.2020 06:27

lol wow! professor steve breaks it down like a chiropractor! liked & subscribed

Ответить
@21rogerwaters
@21rogerwaters - 27.05.2020 06:31

Steve, the first two console.log should return an error like the third one, but it doesn't 🤔:
let dataTypes = {
null: 'oi',
undefined: 'olá',
object: 'hhhhh'
}

console.log(dataTypes[null]) // => 'oi' - it works (why?)
console.log(dataTypes[undefined]) // => 'olá' - it works (why?)
console.log(dataTypes[object]) // => Uncaught ReferenceError: object is not defined - it did'n work (as espected)

Ответить
@RedEyedJedi
@RedEyedJedi - 27.03.2020 08:09

four* log statements. Was that part of the test? haha

Ответить
@abdelmoneimnafea8498
@abdelmoneimnafea8498 - 24.10.2019 07:51

Such an amazing series ... thanks Steve

Ответить
@gomogovo4966
@gomogovo4966 - 13.10.2019 21:43

I'll be damned if that is not a "reference" to Supernatural...

Ответить
@MsRamrad
@MsRamrad - 02.07.2019 19:22

It's a shame that I did not discover your channel earlier. You have a gift for breaking down and explaining concepts really well.

Ответить
@samuelmatheson9655
@samuelmatheson9655 - 02.07.2019 18:45

I just use Console.table(OBJECT), cause I'm a lazy boi

Ответить