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
@richardwang34388 жыл бұрын
This nice guy not only teaches me techniques, but also helps me get familiar with Indian accent :)
@Lakesider6 жыл бұрын
I like his accent, very clear, easy to understand.
@osamagamal4955 жыл бұрын
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
@mocococo28774 жыл бұрын
@Ø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.
@syedaqib29124 жыл бұрын
Amazing Series o have completed 23 videos...
@kamabrapa886 жыл бұрын
great video! To the point, simple, effective and recommends the best practices. Nice!
@SweepAndZone10 ай бұрын
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
@anjalikothari91522 жыл бұрын
Thankyou so much sir...you explained it very clearly
@kimicox76984 жыл бұрын
You eliminated all my doubt. Thank you.
@davejookhuu50414 жыл бұрын
As always, thank you very much! Nice simple explanation...
@rushendrarushi7 жыл бұрын
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.
@AshishYadhuvanshi7 жыл бұрын
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
@beepybeepy49032 жыл бұрын
Thank you so much!
@riverOfWinds4 жыл бұрын
Thank you so much for this.
@hausofwheat8 жыл бұрын
Thank you!
@scchauhan907 жыл бұрын
Sir i can't understand this topic, which is property name is Dynamic.
@ayron4195 жыл бұрын
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
@TheKingShakaZulu5 жыл бұрын
i love you beautiful man, made it super clear to me XOXO
@kotesn79384 жыл бұрын
Hey Koushik, thanks for the tutorial. What's the difference between myObj["prop3"] and myObj[prop3] ?
@a_rob4 жыл бұрын
"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.
@kotesn79384 жыл бұрын
@@a_rob Thank you for the explanation :)
@karthickrajalearn5 жыл бұрын
Awesome I understood difference between dot and square bracket
@jdsvic7 жыл бұрын
Are the quotes required around the property? console.log(myObj[1]); worked just fine.
@daisy_haniii3 жыл бұрын
If you don't use quotes with valid identifiers, it's causing error
@tanishgupta39074 жыл бұрын
JavaScript first creates the problem by let the developers choosing invalid variable name like 1 then provide solution for that by giving extra operator ... 🤣🤣
@SuperYouthful3 жыл бұрын
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.
@SuperYouthful3 жыл бұрын
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.