Objects in depth in javascript in hindi | chai aur

Sdílet
Vložit
  • čas přidán 23. 04. 2023
  • 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
  • Věda a technologie

Komentáře • 291

  • @quickSilverXMen
    @quickSilverXMen Před 10 měsíci +29

    @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

  • @ayaniegain
    @ayaniegain Před 10 měsíci +18

    The uniqueness of your course, you not only teach the topic but also learn the exact use of it.🥰

  • @HydroJudge
    @HydroJudge Před 9 měsíci +4

    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.

  • @user-eq6mj3fk9x
    @user-eq6mj3fk9x Před 10 měsíci +5

    finally found a great teacher on youtube , really really helpful

  • @razashah7881
    @razashah7881 Před 25 dny +2

    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.

  • @abdush5830
    @abdush5830 Před rokem +8

    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

  • @tusharsachdeva3654
    @tusharsachdeva3654 Před 6 měsíci +5

    Thanks! Awesome way of explanation man. Damn

  • @tech_channel110
    @tech_channel110 Před 10 měsíci +1

    Best video on internet
    Shandar lecture
    Keep making such an amazing video lecture for us
    These lectures are very helpful for us

  • @Quickkit
    @Quickkit Před rokem +14

    @15:15 hello sir,undefined is the return value of the function greeting( ).

    • @farazahmed1668
      @farazahmed1668 Před 10 měsíci +2

      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.

  • @babarshabbir2554
    @babarshabbir2554 Před měsícem +1

    "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"

  • @Sgsbakers
    @Sgsbakers Před 8 měsíci +27

    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 Před 5 měsíci

      Why he didn't get it?

    • @parvahuja7618
      @parvahuja7618 Před 4 měsíci

      true, because whenever we are using { } we have to explicitly write return whereas when simply using ( ) we do do not need to write it

  • @vlogs4u968
    @vlogs4u968 Před 10 měsíci

    Thank you sir ji main thoda research kiya ki CZcams 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 Před 6 měsíci

    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

  • @biswaranjansahu66
    @biswaranjansahu66 Před 4 měsíci

    There are no words for your teaching skill and knowledge sir.

  • @rizwansaifi3590
    @rizwansaifi3590 Před 2 měsíci +1

    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

  • @CodeWithDhruv-sy5bs
    @CodeWithDhruv-sy5bs Před 4 měsíci +1

    The reason of undefined is because the greeting function is not returning anything it is just priniting thats why the return type is undefined

  • @milindchaturvedi9770
    @milindchaturvedi9770 Před 4 měsíci

    The best series on the internet !

  • @NiteshChaudhary07.
    @NiteshChaudhary07. Před 7 měsíci +1

    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

  • @AbdulHameed-to3sg
    @AbdulHameed-to3sg Před 9 měsíci +1

    no doubt sir you are great teacher

  • @AmitRaj.2
    @AmitRaj.2 Před 9 měsíci +9

    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

  • @formeusgamer4327
    @formeusgamer4327 Před měsícem

    Buhat achy sy apny explain kra Hai,🥰

  • @usama5619
    @usama5619 Před 9 měsíci

    thank you!
    great teacher !

  • @cherishkansara7851
    @cherishkansara7851 Před 3 měsíci +5

    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

  • @harishankarthakur388
    @harishankarthakur388 Před 9 měsíci +1

    This series is very addictive❤

  • @vasudev3744
    @vasudev3744 Před 3 měsíci +3

    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

  • @set1675
    @set1675 Před 9 měsíci

    THIS SERIES IS SO ADDICTIVE , MY GOD😍😌

  • @ranjeetchoudhary112
    @ranjeetchoudhary112 Před 10 měsíci

    I was waiting this type of video

  • @Bca.Wallah
    @Bca.Wallah Před 4 měsíci

    This is literally The best javascript playlist on CZcams.
    Hope the way you guide the students will truly bring a revolution.
    Lots of love Sir😍❤❤

  • @YamrajShrestha
    @YamrajShrestha Před 9 měsíci +4

    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.

  • @md.talibansari7388
    @md.talibansari7388 Před 7 měsíci +7

    @14:51 "undefined" is appearing because the function is not returning anything, and you have called the function inside the console.

  • @aaaaaannnnnnnaaaaaannnnnnn
    @aaaaaannnnnnnaaaaaannnnnnn Před 4 měsíci +1

    *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 Před 4 měsíci

      same bhai react course complete kia hay or ab ye dekhna start kia or boht maza aaraha

  • @SyedAsif08
    @SyedAsif08 Před 6 měsíci

    understood objects in js very well.....................................

  • @prakhargupta4347
    @prakhargupta4347 Před rokem

    maza aagaya. thank you so much sir.

  • @mansoorafzal4344
    @mansoorafzal4344 Před 5 měsíci

    Excellent Work Done bro

  • @nivilsangwan7352
    @nivilsangwan7352 Před 3 měsíci

    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.

  • @srijareddy1088
    @srijareddy1088 Před 21 dnem

    Thank you very much sir

  • @krishnavamsi1126
    @krishnavamsi1126 Před měsícem

    THANKS A LOT BRO

  • @vaibhavpalaria5821
    @vaibhavpalaria5821 Před 10 měsíci

    Sir ji pranam
    Thanks for a superb video

  • @vivekbhakhri735
    @vivekbhakhri735 Před 5 měsíci

    Awesome!!

  • @hamvlogwale
    @hamvlogwale Před 4 měsíci

    love this playlist

  • @shashankkumarpandey4184
    @shashankkumarpandey4184 Před 6 měsíci +2

    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.

  • @SuryaKarigar
    @SuryaKarigar Před 9 měsíci

    Wow [ ] can take my job 😂😂 I better need to be ready for Interview Sir. It’s creating fear and confidence at the same time

  • @learning-shaharyar550
    @learning-shaharyar550 Před měsícem +5

    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 Před měsícem

      Same doubt, have you got any answer ?

    • @shaharyaransari4887
      @shaharyaransari4887 Před 4 dny

      @@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 Před 4 dny

      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 Před 4 dny

      i think jaldbazi mei sir bhool gye

  • @shashankmishra9014
    @shashankmishra9014 Před měsícem

    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.

  • @shouviksarkar7900
    @shouviksarkar7900 Před 28 dny

    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

  • @Solanki493
    @Solanki493 Před rokem

    Chai aur code main mera swagat hi

  • @deepakmishra96
    @deepakmishra96 Před 11 měsíci

    Great video!

  • @user-np8rk3nh7q
    @user-np8rk3nh7q Před 4 dny

    all the comments solve my residual doubts thank you guys

  • @MonikaKumari-er4de
    @MonikaKumari-er4de Před 3 měsíci

    Thank you sir❤️

  • @ritushrivatri6865
    @ritushrivatri6865 Před 3 měsíci

    Awesome 😶‍🌫

  • @BitFire007
    @BitFire007 Před 4 měsíci

    "Chai aur Code, you've successfully turned me into a JavaScript enthusiast. Your tutorials are gold!"

  • @technoyash2970
    @technoyash2970 Před 8 měsíci

    Thank you so much bhaiya

  • @WatchNotchK2S
    @WatchNotchK2S Před 4 měsíci

    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 )

  • @munawarminhas7982
    @munawarminhas7982 Před 9 měsíci +2

    in my case also there is 12:29 am haha,,, you are doing great sir, I eagerly await the backend series.

    • @chaiaurcode
      @chaiaurcode  Před 9 měsíci +10

      Kya din, kya raat. Agr mza aa rha to kaam krenge hi

    • @munawarminhas7982
      @munawarminhas7982 Před 9 měsíci

      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

  • @Abhinav-ep7vb
    @Abhinav-ep7vb Před měsícem

    Gold Js Content ON YT . keep Creating more content sir

  • @nikulkumar6224
    @nikulkumar6224 Před rokem

    Finally Back ❤

  • @aryangaur228
    @aryangaur228 Před 10 měsíci

    Thank you very much sir!!

  • @abdulajim9633
    @abdulajim9633 Před 10 měsíci

    Very nice js Course ✔✔❤❤❤❤❤❤

  • @nitishsingh925
    @nitishsingh925 Před 8 měsíci +1

    Symbol is new to me 💯

  • @BABABENNETT
    @BABABENNETT Před 4 měsíci

    hitesh sir op

  • @akshaybadwaik-nl5ng
    @akshaybadwaik-nl5ng Před 3 měsíci

    thank you

  • @Mahin_katariya
    @Mahin_katariya Před 3 měsíci

    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.✅

  • @fawaz_exe
    @fawaz_exe Před 5 dny

    @ 14.46 It gives undefined as we did not use return keyword there. If we use return it will not print undefined.

  • @kazitanim007
    @kazitanim007 Před 6 měsíci +2

    When u call the function directly instead of console.log - "undefined" doesn''t show on the console.

  • @codethics4033
    @codethics4033 Před 2 měsíci +1

    @10:09 the methode that you told still shoing that in string even i dicleared it correct way .

  • @JavidSumra786
    @JavidSumra786 Před rokem +9

    Sir I think greeting function giving undefined because of we are printing this function so it expect some value

    • @KrishnaArt13
      @KrishnaArt13 Před rokem

      console.log("=======jsUser.greeting()====",jsUser.greeting());
      console.log("=====jsUser.greetingTwo()======",jsUser.greetingTwo());

  • @kamilsiddiqui4252
    @kamilsiddiqui4252 Před 4 měsíci

    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.

  • @md.abidullahmuhib
    @md.abidullahmuhib Před 3 měsíci

    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 🇧🇩 .

  • @lovetriangle3232
    @lovetriangle3232 Před 2 měsíci

    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.

  • @FairyhunterGG
    @FairyhunterGG Před 9 měsíci

    Why can't I use the 'this' keyword in an object method with an arrow function?

  • @manemanoj3068
    @manemanoj3068 Před rokem

    Just insane..

  • @soumadip_skyy_banerjee
    @soumadip_skyy_banerjee Před 11 měsíci +1

    🔥

  • @f50achievers10
    @f50achievers10 Před 6 měsíci

    We are getting undefined value because of function log,
    When we just call the function..it won't be undefined...😊

  • @saumyadipdutta5419
    @saumyadipdutta5419 Před 3 měsíci

    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

  • @ammarsiddiqui6486
    @ammarsiddiqui6486 Před 10 měsíci

    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?

  • @rjsuraj1205
    @rjsuraj1205 Před 9 měsíci

    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

  • @bngdtutorial2947
    @bngdtutorial2947 Před 3 měsíci

    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() .

  • @VishalSharma-rn7mt
    @VishalSharma-rn7mt Před 11 měsíci

    Awesome

  • @RiteshKumar-yq4cx
    @RiteshKumar-yq4cx Před 4 měsíci

    wts the meaning of Array.from() , does it mean we are calling a from() method from Array object

  • @pushpendra10001
    @pushpendra10001 Před 9 měsíci +1

    sir tell me one thing after using square brackets it still give me type of symbol is string why ???? it only show under the object but if check the sybol type of on console it shows it is string

  • @supernovaveda211
    @supernovaveda211 Před 16 dny

    10:20 me jo sir , key ka syntax shi kiye hai taki uska type symbol aa jae. Lekin syntax shi krke firse check kiye to type string hi hai.

  • @yosayaan7013
    @yosayaan7013 Před měsícem

    best

  • @user-ut8wp3uw7y
    @user-ut8wp3uw7y Před 4 měsíci

    @6:55 its giving access by full name by using dot

  • @user-ub4er8ij5j
    @user-ub4er8ij5j Před 3 měsíci +1

    I too started watching this video at 12:30 AM

  • @pratiklondhe3696
    @pratiklondhe3696 Před 2 měsíci

    at 10:37 if i write console.log(typeof jsUser[mySym]); this then it also give me string type?

  • @karanbhandari1534
    @karanbhandari1534 Před 8 měsíci

    the undefined in the last part was occurring because he was logging the invocation of the function..?

  • @angshumanpathak2300
    @angshumanpathak2300 Před 4 měsíci +1

    Sir in the symbol part, even the console.log(typeof JsUser[mysym]); returns a string , is that correct representation ?

    • @iam_PiyushKumar
      @iam_PiyushKumar Před 4 měsíci

      Brother use console.log(typeof Object.keys(JsUser)[2]); to check the type of key

    • @iam_PiyushKumar
      @iam_PiyushKumar Před 4 měsíci

      Output will be undefined because Symbol are enumerable

  • @sanjoyal_world_07
    @sanjoyal_world_07 Před 11 měsíci +1

    Guru jee ..next video upload kijiye js chapter 49 k baad se ...

  • @sumitthapamagar9756
    @sumitthapamagar9756 Před 8 měsíci

    thank y

  • @thebusinesspostt
    @thebusinesspostt Před 3 měsíci +1

    Can anyone help me how to access ARRAY inside objects using bracket notation ?

  • @arpdeepsinghparihar
    @arpdeepsinghparihar Před 5 měsíci

    can anyone tell which theme is used by sir

  • @shibuadak7419
    @shibuadak7419 Před 6 měsíci

    nice

  • @robot6716
    @robot6716 Před 16 dny

    @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.

  • @shanksiuu
    @shanksiuu Před 5 měsíci

    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")

  • @Tech_Space_Warrior
    @Tech_Space_Warrior Před 6 měsíci

    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 Před 24 dny

      Brother it was for understanding purpose only.
      In this, Sir wanted to show us the other ways of accessing the object key.

  • @pranjalgogoi-1209
    @pranjalgogoi-1209 Před 7 měsíci

    DEPTH KNOWLEDGE OF OBJECT

  • @user-fk8yl8du5g
    @user-fk8yl8du5g Před 3 měsíci

    still mySym data type shows string why not symbol console.log(typeof jsUser[mySym]);

  • @sahilgupta7001
    @sahilgupta7001 Před 3 měsíci +1

    the function was showing undefined because you logged a function which was not returning anything, how could you not get this simple thing

  • @mohitchand8004
    @mohitchand8004 Před měsícem +2

    In symbol [10:36] even when we use square brackets than also the typeof is returning string. Can anybody explain me this

  • @anonymous6501
    @anonymous6501 Před 16 dny

    const ob1 = {
    name : "Prateek",
    age : 30,
    "add" : "Prayagraj"
    }
    console.log(ob1["add"]);
    console.log(ob1.add);
    I checked today Now both syntax is working.