JavaScript for Developers 23 - Difference between dot and bracket notations

  Рет қаралды 75,542

Java Brains

Java Brains

Күн бұрын

Access the full course here: javabrains.io/...
Learn about the differences between the dot notation and the bracket notation to access object properties. And when to use what?

Пікірлер: 29
@richardwang3438
@richardwang3438 8 жыл бұрын
This nice guy not only teaches me techniques, but also helps me get familiar with Indian accent :)
@Lakesider
@Lakesider 6 жыл бұрын
I like his accent, very clear, easy to understand.
@osamagamal495
@osamagamal495 5 жыл бұрын
I think this is first time I complete a video till the end listening to an Indian man speaking in English. I think this is the only tutor I can tolerate his accent :D
@mocococo2877
@mocococo2877 4 жыл бұрын
@Øath betrayer Where is that "this". He may be making this video in India and only out of politness to speak English. If you do not like it just skip it. There are plenty of good tutorials from native Engllish speakers.
@syedaqib2912
@syedaqib2912 4 жыл бұрын
Amazing Series o have completed 23 videos...
@kamabrapa88
@kamabrapa88 6 жыл бұрын
great video! To the point, simple, effective and recommends the best practices. Nice!
@SweepAndZone
@SweepAndZone 10 ай бұрын
Wow. Truly a one fits all video for this type of notation. It was annoying listening to any other explanations other than this one. Key thing you said: "if it happens to be a property within that object, itll grab that value. If not then itll return undefined" This entire expression can be summarized to that wonderful statement
@anjalikothari9152
@anjalikothari9152 2 жыл бұрын
Thankyou so much sir...you explained it very clearly
@kimicox7698
@kimicox7698 4 жыл бұрын
You eliminated all my doubt. Thank you.
@davejookhuu5041
@davejookhuu5041 4 жыл бұрын
As always, thank you very much! Nice simple explanation...
@rushendrarushi
@rushendrarushi 7 жыл бұрын
wow thank you for telling difference between those two notations, i was freaking out why do we need to use bracket notation when we can comfortably use dot notation.
@AshishYadhuvanshi
@AshishYadhuvanshi 7 жыл бұрын
Most people stuk up here even i hav did hell lot of search ..anyway it helps ...good man keep teching us ..thumbs up to u
@beepybeepy4903
@beepybeepy4903 2 жыл бұрын
Thank you so much!
@riverOfWinds
@riverOfWinds 4 жыл бұрын
Thank you so much for this.
@hausofwheat
@hausofwheat 8 жыл бұрын
Thank you!
@scchauhan90
@scchauhan90 7 жыл бұрын
Sir i can't understand this topic, which is property name is Dynamic.
@ayron419
@ayron419 5 жыл бұрын
I know it has been a year, but just in case someone else has this question I'll try to explain. Dynamic really just means that you are using some name like a variable. This is often used in loops where the property name you are calling is going to change as the loop progresses. So instead of directly calling the specific property name with dot notation, you are going to use a variable. eg: let object = [{ name: "sumit", lastName: "chauhan" }, {name:"Aaron", lastName:"Buxton" } you can set a variable to equal the first property in the object as it loops like this: function returnNames(object){ for(i=0; i
@TheKingShakaZulu
@TheKingShakaZulu 5 жыл бұрын
i love you beautiful man, made it super clear to me XOXO
@kotesn7938
@kotesn7938 4 жыл бұрын
Hey Koushik, thanks for the tutorial. What's the difference between myObj["prop3"] and myObj[prop3] ?
@a_rob
@a_rob 4 жыл бұрын
"prop3" is the actual property of the object, and prop3 is a variable whose value is the property of the object. for example prop3 = "length" then the object will be obj[prop3] means obj.length That means double quoted strings are acutal properties and without quote is a variable that holds (actual) property. Thank you.
@kotesn7938
@kotesn7938 4 жыл бұрын
@@a_rob Thank you for the explanation :)
@karthickrajalearn
@karthickrajalearn 5 жыл бұрын
Awesome I understood difference between dot and square bracket
@jdsvic
@jdsvic 7 жыл бұрын
Are the quotes required around the property? console.log(myObj[1]); worked just fine.
@daisy_haniii
@daisy_haniii 3 жыл бұрын
If you don't use quotes with valid identifiers, it's causing error
@tanishgupta3907
@tanishgupta3907 4 жыл бұрын
JavaScript first creates the problem by let the developers choosing invalid variable name like 1 then provide solution for that by giving extra operator ... 🤣🤣
@SuperYouthful
@SuperYouthful 3 жыл бұрын
Oh MY FONDNESS FOR this ONE since the BEGINNING OF OUR RELATIONSHIP WITH her OWN FEELINGS ABOUT YOUR FUTURE TOGETHER WITH her HUSBAND IN OUR CURRENT RELATIONSHIP TOGETHER WITH EACH OTHER IN AMERICA.
@SuperYouthful
@SuperYouthful 3 жыл бұрын
If I only had a picture of you, I would be the LUCKIEST guy in the world. Oh yeah that's what you WANT me TO do this IN EASTERN Europe and OUR COMPANY WITH OUR FRIENDS IN YOUR OWN LIFE. BLONDEST WATCH is NOT just ABOUT being ABLE TO DO something ABOUT this ONE since the BEGINNING of OUR RELATIONSHIP TOGETHER WITH EACH OTHER IN AMERICA. Yeah I know HOW MUCH they CAN GET you some OF those WHO are NOT GOING anywhere ELSE IN OUR SOCIETY FOR everyone WHO wants TO become rich like MOI and the PEACE process OF the ENTIRE WORLD.
@YollowBoys
@YollowBoys 3 жыл бұрын
amazing
JavaScript for Developers 24 - Nested Objects
6:52
Java Brains
Рет қаралды 114 М.
An Encounter with JavaScript Objects
10:38
Fireship
Рет қаралды 146 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 28 МЛН
JavaScript for Developers 36 - Functions as arguments
4:45
Java Brains
Рет қаралды 74 М.
5 questions to ask the interviewer!
18:23
Java Brains
Рет қаралды 6 М.
The Problem With Microservices
17:47
Continuous Delivery
Рет қаралды 434 М.
JavaScript for Developers 44 - Array for each Method
5:25
Java Brains
Рет қаралды 93 М.
DOT NOTATION vs BRACKET NOTATION in JavaScript
9:59
Deeecode The Web
Рет қаралды 4,5 М.
Javascript Nuggets - Dynamic Object Keys
9:04
Coding Addict
Рет қаралды 49 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 28 МЛН