Тёмный

Objects in depth in javascript in hindi | chai aur  

Chai aur Code
Подписаться 353 тыс.
Просмотров 190 тыс.
50% 1

Visit chaicode.com for all related materials, community help, source code etc.
#javascript #hindi
Sara code yaha milta h
github.com/hiteshchoudhary/
Discord pe yaha paaye jaate h:
hitesh.ai/discord
Instagram pe yaha paaye jaate h:
/ hiteshchoudharyofficial

Наука

Опубликовано:

 

23 апр 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 297   
@quickSilverXMen
@quickSilverXMen 11 месяцев назад
@1:13 objects intro @7:20 object key using symbol datatype @9:30 adv. @11:00 freezer( ) method in object @12:00 symbol snip again
@razashah7881
@razashah7881 Месяц назад
Sir bundle of thanks, yahan tk pohnch kar mujhe wakeyhi lag ra hey k ye course bohat keemti hey, is sey pehley me 2 bar JS ko doosrey mentors sey bhi kar chuka hun, ab third time aapse seekh raha hun, yahan aa kar mujhe aik bat ki zroor realization hui hey, wo ye k ab me ye dekhta hun k jis mentor sey me seekh raha hun, usey khud ko JS ka kitna pata hey, me sabhi mentor ki izzat karta hun, lakin in depth kabhi na kabhi student k dil esa phase zroor ata hey k wo critical way me sochney lagta hey, aik to aapkey teaching style bohat unique hey, or friendly hey, secondly aap apni tarf sey bharpoor try kartey hen k me jo bat samjha raha hun, wo student k dimagh me literally ghuss jaey.
@ayaniegain
@ayaniegain 11 месяцев назад
The uniqueness of your course, you not only teach the topic but also learn the exact use of it.🥰
@Quickkit
@Quickkit Год назад
@15:15 hello sir,undefined is the return value of the function greeting( ).
@farazahmed1668
@farazahmed1668 11 месяцев назад
Q k humne dar-asal value ko print karwaya hai na k return, to jab kuch b return nahi hoga... to by default undifined he return hoga.
@Sgsbakers
@Sgsbakers 8 месяцев назад
in greeting & greetingTwo functions you log messages to the console but don't return anything, so they implicitly return undefined as an output after every console. But when we use return keyword in functions instead of console.log it will not output 'undefined'.
@agentNirmites
@agentNirmites 6 месяцев назад
Why he didn't get it?
@parvahuja7618
@parvahuja7618 4 месяца назад
true, because whenever we are using { } we have to explicitly write return whereas when simply using ( ) we do do not need to write it
@HydroJudge
@HydroJudge 9 месяцев назад
Iss lecture mein jo sir ne concepts bataaye hain woh sach mein in depth hain. Notes banaake aur ache se samajh aata hai. This series is lit.
@cherishkansara7851
@cherishkansara7851 4 месяца назад
Sir woh last mein undefined isliye araha hai kyuki function Console log kar raha hai na ki kuch return kar raha hai or an function ko console log mein print karwa rahe hai toh isliye undefined araha hai
@learning-shaharyar550
@learning-shaharyar550 2 месяца назад
10:00 The syntax of declaring a symbol inside object still does not seem to be correct because upon console.log(typeof JsUser[mySym]); // It returns *string* , whereas ideally it should return Symbol as its dataType.
@hobabu7066
@hobabu7066 Месяц назад
Same doubt, have you got any answer ?
@shaharyaransari4887
@shaharyaransari4887 15 дней назад
@@hobabu7066 The Explaination was quite confusing. However following code prints type of symbol: // Objects let mysymbol = Symbol('Key1'); let myobj = { name: "Shaharyar Ansari", id: 1232, [mysymbol] : mysymbol } console.log(typeof myobj[mysymbol]);
@shaharyaransari4887
@shaharyaransari4887 15 дней назад
The only reason for using Square brackets inside an object is to assign a dynamic key. Forexample: let key = 'dynamicKey'; let value = 'This is a dynamic value'; let obj = { [key]: value }; console.log(obj); // Output: { dynamicKey: 'This is a dynamic value' }
@user-np8rk3nh7q
@user-np8rk3nh7q 15 дней назад
i think jaldbazi mei sir bhool gye
@user-eq6mj3fk9x
@user-eq6mj3fk9x 10 месяцев назад
finally found a great teacher on youtube , really really helpful
@vasudev3744
@vasudev3744 4 месяца назад
sir the undefined value that is being printed on the screen is bcoz u r printing the return of the function which is not defined console.log(JsUser.greeting()) is wrong instead use JsUser.greeting() for calling the function
@youtube_reels..
@youtube_reels.. Месяц назад
thank you
@abdush5830
@abdush5830 Год назад
love you sir..ye Internet ki best series hai JS ki..Jitna aap deep explain kr rahe hain utna kisi ne ni kia hai Yt pr...very thanks Sir
@phantomcatprojects8546
@phantomcatprojects8546 Год назад
hitesh sir be like raat 12:30 baje hai to best object tutorial to bana lu
@AmitRaj.2
@AmitRaj.2 10 месяцев назад
The full name has space in between and thus it cannot be acessed using . Notation but if there is no space and if we type the key in string expression like 'fullname' it can be accesed using . Notation
@gamingwithme630
@gamingwithme630 4 месяца назад
right bro
@md.talibansari7388
@md.talibansari7388 8 месяцев назад
@14:51 "undefined" is appearing because the function is not returning anything, and you have called the function inside the console.
@satyanarayandalei-rz2kw
@satyanarayandalei-rz2kw 5 месяцев назад
Exactly
@user-kk9if6ru1l
@user-kk9if6ru1l 6 дней назад
@7:02 you can also access by dot method let a={ "name":"ahmed", 'age':20} console.log(a.name) // ahmed console.log(a[name]) // ahmed conclusion: if you give "key" in string or without string it wiill access by both two methods
@ManishGupta-qd8fl
@ManishGupta-qd8fl 2 дня назад
'undefined' is shown , because we call the method in console.log(jsUser.greeting()) and we console also in greeting method. It will removed if we directly call method without console. eg; jsUser.greeting()
@rizwansaifi3590
@rizwansaifi3590 2 месяца назад
7:02 the issue with the object property "first name" when trying to access it as (object.first name ) is because of space , if the property name was "first" then in that case it is easily accessible as object.first or object["first"] both will work . As any property name is coerced as string
@KoushikBiswas-jo7iy
@KoushikBiswas-jo7iy Месяц назад
Yes both should work.
@babarshabbir2554
@babarshabbir2554 2 месяца назад
"Excellent tutorial, covers JavaScript objects' depths neatly! Loved the chai tea and code puns. #JavaScript" Note: This comment is written in Hindi script, which would look like - "पर excellant ट्यूटोरियल है, सक्षम JavaScript objects की depths निग्रानी करता है! Chai tea और code शब्दों से प्यार लगाया। #JavaScript"
@vlogs4u968
@vlogs4u968 11 месяцев назад
Thank you sir ji main thoda research kiya ki RU-vid pr available js ki jyadatar playlisto pr really sir ji sabse alak hai aapki playlist concept ko apne alak hi tarike se bataya hai bahut bahut dhanyavad sir ji
@user-ob8cv5wy7g
@user-ob8cv5wy7g 7 месяцев назад
omg i've seen such a high quality oontent like this on yt , i'm just getting jealous that many people can have access to this video and they'll be getting more info....damnn bro,this playlist is lit
@tech_channel110
@tech_channel110 11 месяцев назад
Best video on internet Shandar lecture Keep making such an amazing video lecture for us These lectures are very helpful for us
@CodeWithDhruv-sy5bs
@CodeWithDhruv-sy5bs 5 месяцев назад
The reason of undefined is because the greeting function is not returning anything it is just priniting thats why the return type is undefined
@kazitanim007
@kazitanim007 7 месяцев назад
When u call the function directly instead of console.log - "undefined" doesn''t show on the console.
@shashankkumarpandey4184
@shashankkumarpandey4184 6 месяцев назад
15:00 , you are using console.log(console.log()) thing thats why undefined coming, just like python when you do print(print("Hi")), it gives hi then none. print statement inside print statement. i don't know if my logic is correct but i can think of this only right now.
@lokinagure
@lokinagure 5 месяцев назад
Bilkul sahi he.
@tusharsachdeva3654
@tusharsachdeva3654 7 месяцев назад
Thanks! Awesome way of explanation man. Damn
@shouviksarkar7900
@shouviksarkar7900 Месяц назад
14:51 undefined is bcz in greeting function we already had console.log('message') ...but while calling the function you used console.log(greeting()) again. due to to console.log() we are getting an undefined. Just write gretting() and there will be no undefined. same goes for 17:05
@JavidSumra786
@JavidSumra786 Год назад
Sir I think greeting function giving undefined because of we are printing this function so it expect some value
@KrishnaArt13
@KrishnaArt13 Год назад
console.log("=======jsUser.greeting()====",jsUser.greeting()); console.log("=====jsUser.greetingTwo()======",jsUser.greetingTwo());
@biswaranjansahu66
@biswaranjansahu66 4 месяца назад
There are no words for your teaching skill and knowledge sir.
@fawaz_exe
@fawaz_exe 16 дней назад
@ 14.46 It gives undefined as we did not use return keyword there. If we use return it will not print undefined.
@YamrajShrestha
@YamrajShrestha 9 месяцев назад
I've been fortunate to have incredible guidance on my journey to becoming a full-stack programmer. Learning with the help of this amazing tutorial, I've been steadily mastering JavaScript, and it's been an enlightening experience. A big thank you to my learning companion for being there every step of the way.
@zaindev31
@zaindev31 6 месяцев назад
hh
@zaindev31
@zaindev31 6 месяцев назад
kkk
@NiteshChaudhary07.
@NiteshChaudhary07. 8 месяцев назад
Mene bahut video's dekhi par maja nahi aya apki video dekhta hu to sach me apke video's achhe lagte he aur helpfull he thank you
@Bca.Wallah
@Bca.Wallah 4 месяца назад
This is literally The best javascript playlist on RU-vid. Hope the way you guide the students will truly bring a revolution. Lots of love Sir😍❤❤
@AbdulHameed-to3sg
@AbdulHameed-to3sg 10 месяцев назад
no doubt sir you are great teacher
@milindchaturvedi9770
@milindchaturvedi9770 4 месяца назад
The best series on the internet !
@shashankmishra9014
@shashankmishra9014 2 месяца назад
undefined @15:10 is due to the fact that console.log print what is returned when so in this case when greeting is used nothing is returned so fun returns undefined which is printed.
@nivilsangwan7352
@nivilsangwan7352 4 месяца назад
his eyes have that dark thing around them indicating the tiredness. BTW I am loving your videos and I am actually a 9th grade student and am able to understand almost everything. This course is better than any other course I've seen on YT. Thank You Sir.
@formeusgamer4327
@formeusgamer4327 Месяц назад
Buhat achy sy apny explain kra Hai,🥰
@ammarsiddiqui6486
@ammarsiddiqui6486 10 месяцев назад
sir is tutorial very help full for me jo me chz ki sekhe oski practise kasie kare for eg aj hum ne object seekh hai?
@saumyadipdutta5419
@saumyadipdutta5419 3 месяца назад
Hello @Hitesh Sir, I think undefined in the last , is coming from console.log(). If we write JsUser.greeting() only then undefined will not show
@harishankarthakur388
@harishankarthakur388 9 месяцев назад
This series is very addictive❤
@set1675
@set1675 9 месяцев назад
THIS SERIES IS SO ADDICTIVE , MY GOD😍😌
@usama5619
@usama5619 9 месяцев назад
thank you! great teacher !
@SyedAsif08
@SyedAsif08 6 месяцев назад
understood objects in js very well.....................................
@WatchNotchK2S
@WatchNotchK2S 5 месяцев назад
Sir , JsUser.greeting(); should be used to call the function and print the value in it. as you console.log(JsUser.greeting()) & console.log(JsUser.greetingTwo()); it want function to return a value and give the answer , thus you get udefined in the browser ( Correct me if i am wrong )
@aaaaaannnnnnnaaaaaannnnnnn
@aaaaaannnnnnnaaaaaannnnnnn 4 месяца назад
*Sir really React complete karney kay baad dekh raha ho concepts ko clear karney kai liyay ab samjh araha hai in depth course ka matlab😃*
@saadkashif880
@saadkashif880 4 месяца назад
same bhai react course complete kia hay or ab ye dekhna start kia or boht maza aaraha
@ranjeetchoudhary112
@ranjeetchoudhary112 11 месяцев назад
I was waiting this type of video
@robot6716
@robot6716 28 дней назад
@17:09 undefined in console becuase at line number 37 and 38 in console log greeting() and greetingTwo function are called a which do not return anything explicitly and by default "undefined". is returned.
@user-np8rk3nh7q
@user-np8rk3nh7q 15 дней назад
all the comments solve my residual doubts thank you guys
@bngdtutorial2947
@bngdtutorial2947 3 месяца назад
when i am writting jsuser.greeting(); then it simply printing the result but, while writting console.log( jsuser.greeting()); then it printing the result along with undefine. It may due to we are not returning any value and still trying to console.log() .
@anonymous6501
@anonymous6501 27 дней назад
const ob1 = { name : "Prateek", age : 30, "add" : "Prayagraj" } console.log(ob1["add"]); console.log(ob1.add); I checked today Now both syntax is working.
@rjsuraj1205
@rjsuraj1205 9 месяцев назад
hey can anyone explain as Sir said constructor creates singleton objects , But constructors are used to create instances of objects, not specifically singleton objects.I am confused can anyone explain plz
@shanksiuu
@shanksiuu 5 месяцев назад
15:00 maybe it's becuz of the absence of return value JsUser.greeting = function(){ return "Hello JS user"; } JsUser.greetingTwo = function(){ return `Hello JS user, ${this.name}`; } console.log(JsUser.greeting()); console.log(JsUser.greetingTwo()); OR function jsUser (name) { console.log(`Hello JS user, ${name}`) } jsUser("Hitesh")
@kamilsiddiqui4252
@kamilsiddiqui4252 4 месяца назад
symbol is getting accessed without using square brackets in both the places in 2024 has the syntax for symbol changed ? I guess so as I used typeof() without square brackets it shows that it is a symbol datatype.
@FairyhunterGG
@FairyhunterGG 9 месяцев назад
Why can't I use the 'this' keyword in an object method with an arrow function?
@mansoorafzal4344
@mansoorafzal4344 6 месяцев назад
Excellent Work Done bro
@prakhargupta4347
@prakhargupta4347 Год назад
maza aagaya. thank you so much sir.
@SuryaKarigar
@SuryaKarigar 9 месяцев назад
Wow [ ] can take my job 😂😂 I better need to be ready for Interview Sir. It’s creating fear and confidence at the same time
@lovetriangle3232
@lovetriangle3232 3 месяца назад
Thankyou for theamazing video sir but at 17:05 ,the output undefined occurrs bcoz in the line no 38 you used console.log to print a function(jsuser.greeting()), function directly excute when it called just by jsuser.greeting(),why we need to write console.log(jsuser.greeting()). i guess you miss that part sir.
@krishnaanandiswaraa
@krishnaanandiswaraa 10 месяцев назад
im sorry to say sir , but problem , you alwasy said that , you explain in depth , but here in object sometime in vedio you type some syntax but dont explain them
@apnipathshala7866
@apnipathshala7866 6 месяцев назад
You can't learn objects is just 19 mins...you have to give 1 to 2 week for this... practice Vdo is only to take an overview of objects
@abirroy1978
@abirroy1978 6 месяцев назад
Bro If you want to depth understanding please go search harsith vasisth javascript full length video you will get depth in every thing..
@Bca.Wallah
@Bca.Wallah 4 месяца назад
Bhai If you really want to learn JavaScript, you will have to work hard yourself. Read documentations. as sir says in all the lectures. Because there is no concept of spoon feeding here. hope all your doubts are cleared.
@user-ub2ol5ou7e
@user-ub2ol5ou7e 4 месяца назад
Objects in javasript.... Thuje objects hee patga nahi tho kya faidha bhai.. OOPSnahi patha hai kya??
@GOJOANDSUKUNAFAN
@GOJOANDSUKUNAFAN 14 часов назад
Yea you all are glazers he doesn't explain shit
@karanbhandari1534
@karanbhandari1534 9 месяцев назад
the undefined in the last part was occurring because he was logging the invocation of the function..?
@srijareddy1088
@srijareddy1088 Месяц назад
Thank you very much sir
@munawarminhas7982
@munawarminhas7982 9 месяцев назад
in my case also there is 12:29 am haha,,, you are doing great sir, I eagerly await the backend series.
@chaiaurcode
@chaiaurcode 9 месяцев назад
Kya din, kya raat. Agr mza aa rha to kaam krenge hi
@munawarminhas7982
@munawarminhas7982 9 месяцев назад
sir the best thing is that we never get bored by your videos,, main ny bht sary courses starrt kiye is sy phly but end kbhi nahi hua koi bhi , but jb sy apka js course dekhna start kiya hai aj 35th video hai within one week,almost 4-6 hours+ daily screen k samny gzr jaty hain time ka pta nahi chlta ,smj b aa jati or practice b ho jati@@chaiaurcode
@sahilgupta7001
@sahilgupta7001 3 месяца назад
the function was showing undefined because you logged a function which was not returning anything, how could you not get this simple thing
@ECommerceNews
@ECommerceNews 8 месяцев назад
Function execute hone k baad jo "undefined" print ho raha hy wo function ki return value hy. am i right?
@vaibhavpalaria5821
@vaibhavpalaria5821 11 месяцев назад
Sir ji pranam Thanks for a superb video
@nikulkumar6224
@nikulkumar6224 Год назад
Finally Back ❤
@hamvlogwale
@hamvlogwale 4 месяца назад
love this playlist
@md.abidullahmuhib
@md.abidullahmuhib 3 месяца назад
Hi there, in this lecture we are getting undefined because we are executing a function inside console.log();. By executing JsUser.greeting(); we are printing "Hello JS user". And the execution value of JsUser.greeting() = undefined. Which we are printing by console.log(JsUser.greeting());. Waiting for a reply. Correct me if I am wrong. Love from Bangladesh 🇧🇩 .
@user-ut8wp3uw7y
@user-ut8wp3uw7y 4 месяца назад
@6:55 its giving access by full name by using dot
@Mahin_katariya
@Mahin_katariya 3 месяца назад
As of 2024 the part where sir wrote at 6:33 " fullname " : " hitesh choudhary " and while we were trying to access it using the dot method it wasn't accessing but now we can access it using the dot method.✅
@RiteshKumar-yq4cx
@RiteshKumar-yq4cx 5 месяцев назад
wts the meaning of Array.from() , does it mean we are calling a from() method from Array object
@codethics4033
@codethics4033 3 месяца назад
@10:09 the methode that you told still shoing that in string even i dicleared it correct way .
@GazzyYT69
@GazzyYT69 2 месяца назад
same problem
@Suman-ze8zz
@Suman-ze8zz 3 месяца назад
Key Takeaways, Watch the fulll video. There are a lot of learning... :)
@jrahul42
@jrahul42 6 дней назад
Great video
@BitFire007
@BitFire007 4 месяца назад
"Chai aur Code, you've successfully turned me into a JavaScript enthusiast. Your tutorials are gold!"
@krishnavamsi1126
@krishnavamsi1126 Месяц назад
THANKS A LOT BRO
@thebusinesspostt
@thebusinesspostt 3 месяца назад
Can anyone help me how to access ARRAY inside objects using bracket notation ?
@vivekbhakhri735
@vivekbhakhri735 6 месяцев назад
Awesome!!
@deepakmishra96
@deepakmishra96 Год назад
Great video!
@pritamvlogs7061
@pritamvlogs7061 7 месяцев назад
sir wo ek excution isliye ho rha hai kyuki apne function call me v console.log krke call kiya hai isliye undefined show ho rha hai
@aryangaur228
@aryangaur228 11 месяцев назад
Thank you very much sir!!
@technoyash2970
@technoyash2970 9 месяцев назад
Thank you so much bhaiya
@abdulajim9633
@abdulajim9633 10 месяцев назад
Very nice js Course ✔✔❤❤❤❤❤❤
@KrishnaArt13
@KrishnaArt13 Год назад
console.log("=======jsUser.greeting()====",jsUser.greeting()); console.log("=====jsUser.greetingTwo()======",jsUser.greetingTwo()); both console.log value printing undefined
@mrinvisible4095
@mrinvisible4095 4 месяца назад
10:31 Sir, to use Symbol as a key, what if we use Map data structure!?
@manemanoj3068
@manemanoj3068 Год назад
Just insane..
@All-about-lea_rning
@All-about-lea_rning Месяц назад
the reason of undefined kyu ki aap ne function me console kiya hai aur execute ke time per bhi aap console kar rhe hai ya to execute ke time console mat kijiye ha to function me se console ko hata ke return kardo
@Solanki493
@Solanki493 Год назад
Chai aur code main mera swagat hi
@gauravmangal5191
@gauravmangal5191 Месяц назад
Two things, Primarily the undefined you were getting was because you were trying to print the output of the greeting function and since it returned nothing you got "UNDEFINED". Secondly, when I am printing the typeof obj[symbol] its printing undefined. IDK if its supposed to be this way or not. If anyone have time can you elaborate a lil.
@siddharthrathore-lb8su
@siddharthrathore-lb8su Месяц назад
for me obj[symbol] is printing string. Maybe you should check your code for any typo.
@soumadip_skyy_banerjee
@soumadip_skyy_banerjee 11 месяцев назад
🔥
@user-hf6om6ts1q
@user-hf6om6ts1q Месяц назад
15:09 ye undefined line 34 se aa raha h qki at line 30, function greeting is not returning anything.
@nitishsingh925
@nitishsingh925 9 месяцев назад
Symbol is new to me 💯
@Abhinav-ep7vb
@Abhinav-ep7vb Месяц назад
Gold Js Content ON YT . keep Creating more content sir
@MonikaKumari-er4de
@MonikaKumari-er4de 4 месяца назад
Thank you sir❤️
@vtechcoding
@vtechcoding Месяц назад
undefined iske liye kyuki function ko aapne call kiya inside console.log but function se kuch return nahe ho rha
@amansayer4943
@amansayer4943 11 месяцев назад
15:15 We are not returning to print it, we just need to call the function with object name ex: User.greeting();
@MCA_HimanshuSeth
@MCA_HimanshuSeth 10 месяцев назад
yeah & the point is that , the function doesn't return any value that is why it is printing undefined
@f50achievers10
@f50achievers10 6 месяцев назад
We are getting undefined value because of function log, When we just call the function..it won't be undefined...😊
@lakhanjoshi2438
@lakhanjoshi2438 Год назад
Call function use without console.log so not show undifine
@sanjoyal_world_07
@sanjoyal_world_07 11 месяцев назад
Guru jee ..next video upload kijiye js chapter 49 k baad se ...
@Tech_Space_Warrior
@Tech_Space_Warrior 6 месяцев назад
Hi Sir! when you say that we didn't access the the value of a key when its in "full name" this formate but if we didn't give space it can and declear the key as full_name it can easily be access by consloe.log(User1.full_name). So what is that? explain please.
@songsbattle
@songsbattle Месяц назад
Brother it was for understanding purpose only. In this, Sir wanted to show us the other ways of accessing the object key.
@ShudhanshuShree
@ShudhanshuShree 5 месяцев назад
undefined is coming because the function greeting and greetingtwo is not returning anything and you are printing the output inside console.log(greeting());
Далее
Functions and parameter in javascript | Hindi
19:14
Просмотров 167 тыс.
СДЕЛАЛА БРЕКЕТЫ ДОМА
01:01
Просмотров 1 млн
Events in Javascript | chai aur #javascript
36:57
Просмотров 180 тыс.
5 JavaScript Mistakes Every Beginner Must Avoid 🔥
10:56
Now you know fetch in javascript | chai aur #javascript
18:37
2.5 Years Experienced Best JavaScript Interview
2:03:06
Просмотров 186 тыс.
Object Oriented in Javascript | chai aur #javascript
32:03
Здесь упор в процессор
18:02
Просмотров 371 тыс.