Objects in depth in javascript in hindi | chai aur

Поділитися
Вставка
  • Опубліковано 7 вер 2024
  • Visit chaicode.com for all related materials, community help, source code etc.
    #javascript #hindi
    Sara code yaha milta h
    github.com/hit...
    Discord pe yaha paaye jaate h:
    hitesh.ai/discord
    Instagram pe yaha paaye jaate h:
    / hiteshchoudharyofficial

КОМЕНТАРІ • 324

  • @quickSilverXMen
    @quickSilverXMen Рік тому +35

    @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 2 місяці тому +4

    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 Рік тому +25

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

  • @Quickkit
    @Quickkit Рік тому +19

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

    • @farazahmed1668
      @farazahmed1668 Рік тому +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.

  • @HydroJudge
    @HydroJudge 11 місяців тому +7

    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.

  • @meetshafiniazi
    @meetshafiniazi 13 днів тому +1

    14:50 I think we are printing a print function that's why we are getting undefined after output. as you can see the function at line number 31 we are printing something in function. So we don't need external print command to print line 31. we can simply execute function without console.log()

  • @Sgsbakers
    @Sgsbakers 10 місяців тому +29

    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 7 місяців тому

      Why he didn't get it?

    • @parvahuja7618
      @parvahuja7618 6 місяців тому

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

  • @AmitRaj.2
    @AmitRaj.2 11 місяців тому +12

    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

  • @abdush5830
    @abdush5830 Рік тому +9

    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

  • @rizwansaifi3590
    @rizwansaifi3590 4 місяці тому +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

  • @learning-shaharyar550
    @learning-shaharyar550 3 місяці тому +9

    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 3 місяці тому

      Same doubt, have you got any answer ?

    • @shaharyaransari4887
      @shaharyaransari4887 2 місяці тому

      @@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 2 місяці тому

      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 2 місяці тому

      i think jaldbazi mei sir bhool gye

    • @VivekSharma-ef1um
      @VivekSharma-ef1um Місяць тому

      @@shaharyaransari4887 thanks man it woked

  • @shouviksarkar7900
    @shouviksarkar7900 2 місяці тому +1

    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

  • @vasudev3744
    @vasudev3744 5 місяців тому +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

  • @shashankkumarpandey4184
    @shashankkumarpandey4184 8 місяців тому +3

    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 7 місяців тому +1

      Bilkul sahi he.

  • @md.talibansari7388
    @md.talibansari7388 9 місяців тому +9

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

  • @EyeGuy2766
    @EyeGuy2766 10 днів тому +1

    7:12
    the error is because you have given space between "full name" if you write "fullname" or "full_name" then it is accessible using dot method also

  • @user-eq6mj3fk9x
    @user-eq6mj3fk9x Рік тому +7

    finally found a great teacher on youtube , really really helpful

  • @babarshabbir2554
    @babarshabbir2554 3 місяці тому +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"

  • @kazitanim007
    @kazitanim007 8 місяців тому +3

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

  • @sufigaming135
    @sufigaming135 11 днів тому

    when we create an object using constructor method we have to mention the object as a singleton otherwise it will behave similar to literal object and we can make multiple instances out of it

  • @CodeWithDhruv-sy5bs
    @CodeWithDhruv-sy5bs 6 місяців тому +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

  • @YamrajShrestha
    @YamrajShrestha 11 місяців тому +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.

  • @codekalam
    @codekalam 10 годин тому

    ### Correction @ 1.25
    Object Literal: Naturally supports Singleton pattern by creating a single instance and providing global access through a closure. It’s a straightforward approach for ensuring only one instance.
    Constructor: By default, allows the creation of multiple instances. To implement Singleton behavior with a constructor, additional logic is needed to ensure only one instance is created and managed.
    Thus, while object literals inherently create a single instance, constructors require extra steps to achieve the same Singleton behavior

  • @ManishGupta-qd8fl
    @ManishGupta-qd8fl Місяць тому

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

  • @JavidSumra786
    @JavidSumra786 Рік тому +9

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

  • @codethics4033
    @codethics4033 4 місяці тому +1

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

  • @swcxkdenkjcndncdnjcd
    @swcxkdenkjcndncdnjcd 6 місяців тому +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 6 місяців тому

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

  • @tusharsachdeva3654
    @tusharsachdeva3654 8 місяців тому +6

    Thanks! Awesome way of explanation man. Damn

  • @shashankmishra9014
    @shashankmishra9014 3 місяці тому

    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.

  • @cherishkansara7851
    @cherishkansara7851 5 місяців тому +8

    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

  • @user-kk9if6ru1l
    @user-kk9if6ru1l Місяць тому

    @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

  • @0xfawazali
    @0xfawazali 2 місяці тому

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

  • @robot6716
    @robot6716 2 місяці тому

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

  • @munawarminhas7982
    @munawarminhas7982 11 місяців тому +2

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

    • @chaiaurcode
      @chaiaurcode  11 місяців тому +10

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

    • @munawarminhas7982
      @munawarminhas7982 11 місяців тому

      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

  • @photosofmine3443
    @photosofmine3443 Місяць тому

    SUMMARY :
    Object name = {
    keyname1: value,
    keyname2: value
    }
    1. To declare object there is two method. Object literals and Object constructor(singleton).
    2. To declare symbol in object use [ ] on keyname .
    3.To freeze/lock an object = Object.freeze(object name).
    4.To access object use objectname.keyname and it is called dot notation.
    5. Use [key name] notation to access object key with special characters and it is called bracket notation.

  • @nivilsangwan7352
    @nivilsangwan7352 5 місяців тому

    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.

  • @mohitchand8004
    @mohitchand8004 3 місяці тому +2

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

    • @bharti_1472
      @bharti_1472 3 місяці тому

      I've the same question.

  • @gauravmangal5191
    @gauravmangal5191 3 місяці тому

    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 3 місяці тому

      for me obj[symbol] is printing string. Maybe you should check your code for any typo.

  • @tech_channel110
    @tech_channel110 Рік тому +1

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

  • @NiteshChaudhary07.
    @NiteshChaudhary07. 9 місяців тому +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

  • @md.abidullahmuhib
    @md.abidullahmuhib 5 місяців тому

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

  • @Bca.Wallah
    @Bca.Wallah 6 місяців тому

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

  • @Mahin_katariya
    @Mahin_katariya 5 місяців тому

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

  • @lovetriangle3232
    @lovetriangle3232 4 місяці тому

    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.

  • @WatchNotchK2S
    @WatchNotchK2S 6 місяців тому

    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 )

  • @supernovaveda211
    @supernovaveda211 2 місяці тому

    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.

  • @shanksiuu
    @shanksiuu 7 місяців тому

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

  • @user-np8rk3nh7q
    @user-np8rk3nh7q 2 місяці тому

    all the comments solve my residual doubts thank you guys

  • @anonymous6501
    @anonymous6501 2 місяці тому

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

  • @BitFire007
    @BitFire007 6 місяців тому

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

  • @bngdtutorial2947
    @bngdtutorial2947 5 місяців тому

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

  • @thebusinesspostt
    @thebusinesspostt 5 місяців тому +1

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

  • @chilloutchords
    @chilloutchords Місяць тому +1

    sir woh undefined isiliye aaya kyu ki woh function kuch return nahi kar raha aur apne usee console.log() kara hai

  • @Saumyadip07
    @Saumyadip07 5 місяців тому

    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

  • @user-hf6om6ts1q
    @user-hf6om6ts1q 3 місяці тому

    15:09 ye undefined line 34 se aa raha h qki at line 30, function greeting is not returning anything.

  • @user-ob8cv5wy7g
    @user-ob8cv5wy7g 8 місяців тому

    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

  • @muhammadraza8181
    @muhammadraza8181 13 днів тому

    property type still string rhty as symbol use krna k bawjood. Symbol mn ku ni change hoty?

  • @biswaranjansahu66
    @biswaranjansahu66 6 місяців тому

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

  • @SuryaKarigar
    @SuryaKarigar 11 місяців тому

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

  • @lokinagure
    @lokinagure 7 місяців тому +1

    Namaste Sir ji,
    In the Video code, JsUser.greeting() logs the message "Hello JS user" to the console but doesn't return anything. When you log the result of JsUser.greeting(), it prints undefined because the function implicitly returns undefined in the absence of a return statement.
    function ke andar ka log message print karta he, but kuch bhi return nahi karta he, phir bhi ham function call karte wakt log kiya to kya karega function bichara undefined hi return karega na!

    • @lokinagure
      @lokinagure 7 місяців тому

      Loving your art of teaching and adating myself.
      Youre awesome Sir ji.

  • @vlogs4u968
    @vlogs4u968 Рік тому

    Thank you sir ji main thoda research kiya ki UA-cam 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

  • @Filmy_world_official
    @Filmy_world_official 8 місяців тому

    The undefined is coming because you are calling a method in a wrong way you have to call it in this way
    let obj = {
    name: "suleman",
    age: 18,
    [symbol]: "hello",
    };
    obj.greeting = function () {
    console.log(`hello ${this.name}`);
    };
    obj.greeting();
    in this way the undefined will not come ,
    hope you got the point all the way from Pakistan.
    pls like my comment if you got the point guys.

  • @sahilgupta7001
    @sahilgupta7001 5 місяців тому +1

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

  • @ShudhanshuShree
    @ShudhanshuShree 6 місяців тому

    undefined is coming because the function greeting and greetingtwo is not returning anything and you are printing the output inside console.log(greeting());

  • @tirth244
    @tirth244 24 дні тому +1

    Symbol me bracket karne ke baad or access me karne ke baad bhi ushka type string hi aa raha hain

  • @All-about-lea_rning
    @All-about-lea_rning 3 місяці тому

    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

  • @mahadevprasadpal7829
    @mahadevprasadpal7829 5 місяців тому +1

    Did not get the "symbol" part. Can anyone please help me understand?!

  • @amansayer4943
    @amansayer4943 Рік тому +3

    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 11 місяців тому +1

      yeah & the point is that , the function doesn't return any value that is why it is printing undefined

  • @f50achievers10
    @f50achievers10 8 місяців тому

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

  • @krishnaanandiswaraa
    @krishnaanandiswaraa Рік тому +43

    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 8 місяців тому +8

      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 7 місяців тому +3

      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 6 місяців тому +2

      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.

    • @V2.The.Great.F
      @V2.The.Great.F 5 місяців тому

      Objects in javasript....
      Thuje objects hee patga nahi tho kya faidha bhai..
      OOPSnahi patha hai kya??

    • @GOJOANDSUKUNAFAN
      @GOJOANDSUKUNAFAN Місяць тому

      Yea you all are glazers he doesn't explain shit

  • @user-ut8wp3uw7y
    @user-ut8wp3uw7y 6 місяців тому

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

  • @kamilsiddiqui4252
    @kamilsiddiqui4252 6 місяців тому

    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.

  • @rohitgurav8482
    @rohitgurav8482 2 місяці тому

    it logs undefined because the function does not return anything may we should just do Js.User.greeting();

  • @KrishnaArt13
    @KrishnaArt13 Рік тому +2

    console.log("=======jsUser.greeting()====",jsUser.greeting());
    console.log("=====jsUser.greetingTwo()======",jsUser.greetingTwo());
    both console.log value printing undefined

  • @Rohit99263
    @Rohit99263 Місяць тому

    sir undefined isiliye aa rha hai kyu ki hum functions ko bhi console.log(user.greeting()) kar rhe hai agar hum ye user.greeting() likhte hain to undefined nhi aa rha hai,

  • @user-jo7tr6pw6s
    @user-jo7tr6pw6s 21 день тому

    FullName wala Jo double quotes mei declare Kiya tha , dot operator se bhi chl gya mera

  • @tulikagupta3998
    @tulikagupta3998 7 місяців тому +2

    but even afterr using it in a correct the the typeof of the symbol is string?? why??

    • @sayali3576
      @sayali3576 6 місяців тому

      exactly i have the same question

  • @shivanshsharma4916
    @shivanshsharma4916 Рік тому

    15:04 undefined aa raha because greeting() is not returning any value , use return keyword to avoid that

    • @AnkitPandey-jo4ye
      @AnkitPandey-jo4ye 11 місяців тому

      maira erroe aa raha hai jsuser.greeting si not a function

    • @mtex448
      @mtex448 11 місяців тому

      @@AnkitPandey-jo4ye you need to add ()

  • @user-fk8yl8du5g
    @user-fk8yl8du5g 5 місяців тому

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

  • @rajatkatal9311
    @rajatkatal9311 4 місяці тому

    appko 34th line pr console log nhi krna tha ye usika "undefined" aa rha hai. usse direct call krte to sirf ek baar print hota woo...

  • @kholaseerat2385
    @kholaseerat2385 3 місяці тому

    When i searched google about singleton , i found out that object literals are singleton ut you are saying they are not can u please clear this doubt

  • @rajeshkanna1829
    @rajeshkanna1829 11 місяців тому +1

    Undefined
    the reason we are getting "undefined" when we call "console.log(JSUser.greetings()) is because the "JSUser.greeting " function does not have a "return" statement .when a funtion does not explicitly return a value ,it implicitly returns "undefined" in javascript

    • @josephmurphy4232
      @josephmurphy4232 10 місяців тому

      When calling the function hitesh sir is calling it in console so we are getting the undefined for that

  • @milindchaturvedi9770
    @milindchaturvedi9770 6 місяців тому

    The best series on the internet !

  • @pratiklondhe3696
    @pratiklondhe3696 4 місяці тому

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

  • @harishankarthakur388
    @harishankarthakur388 11 місяців тому +1

    This series is very addictive❤

  • @Suman-ze8zz
    @Suman-ze8zz 5 місяців тому

    Key Takeaways, Watch the fulll video. There are a lot of learning... :)

  • @vtechcoding
    @vtechcoding 2 місяці тому

    undefined iske liye kyuki function ko aapne call kiya inside console.log but function se kuch return nahe ho rha

  • @wrongturn7865
    @wrongturn7865 Місяць тому

    Sir symbol mey [ ] sey close karne ke baat bhi type string dikha raha hay not symbol

  • @Abhinav-ep7vb
    @Abhinav-ep7vb 3 місяці тому

    Gold Js Content ON YT . keep Creating more content sir

  • @ammarsiddiqui6486
    @ammarsiddiqui6486 Рік тому

    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?

  • @sanjoyal-world_07
    @sanjoyal-world_07 Рік тому +1

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

  • @angshumanpathak2300
    @angshumanpathak2300 6 місяців тому +1

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

    • @iam_PiyushKumar
      @iam_PiyushKumar 6 місяців тому

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

    • @iam_PiyushKumar
      @iam_PiyushKumar 6 місяців тому

      Output will be undefined because Symbol are enumerable

  • @Mr.RaJu_BiShT_06
    @Mr.RaJu_BiShT_06 7 місяців тому

    Why the symbol is important
    Means why we use symbol how can i will helpful for us in real project code
    Can anyone explain me please 🙏🏻

  • @formeusgamer4327
    @formeusgamer4327 3 місяці тому

    Buhat achy sy apny explain kra Hai,🥰

  • @rjsuraj1205
    @rjsuraj1205 11 місяців тому

    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

  • @mrinvisible4095
    @mrinvisible4095 6 місяців тому

    10:31 Sir, to use Symbol as a key, what if we use Map data structure!?

  • @ViralBabuaa
    @ViralBabuaa 16 днів тому

    7:05 apne kaha ki agr
    "name" : "mohit "
    console.log(jsUser.name) accept kar raha hai koi error nhi show kar Raha hai kyu
    Lekin agr mai "full name ": "mohit kumar"
    isko agr (JsUser.full name) de raha hu tab error show kra raha hai kyu ...????

  • @RiteshKumar-yq4cx
    @RiteshKumar-yq4cx 6 місяців тому

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

  • @karanbhandari1534
    @karanbhandari1534 10 місяців тому

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

  • @AbdulHameed-to3sg
    @AbdulHameed-to3sg 11 місяців тому +1

    no doubt sir you are great teacher