Objects in Javascript part 2 in Hindi | chai aur

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.พ. 2025
  • 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

ความคิดเห็น • 246

  • @avibirla9863
    @avibirla9863 ปีที่แล้ว +142

    This js series is so addictive...Im watching this series for hours just like netflix..... Hitesh sir you are awesome 💯 teaching the concept with such dept and clarity and covering minute minute imp interview problems is cherry on cake 🔥❤️

    • @chaiaurcode
      @chaiaurcode  ปีที่แล้ว +31

      Thanks. More to come today

    • @DilipKumar-zp7jg
      @DilipKumar-zp7jg ปีที่แล้ว +11

      ​@@chaiaurcode can u explain singleton in detail i think u missed how to use constructor

    • @sravanakirtana2787
      @sravanakirtana2787 ปีที่แล้ว +4

      Absolutely true. Binge watch. Awesome tutorial

    • @Anuj_pal_1
      @Anuj_pal_1 3 หลายเดือนก่อน

      You are right, how the 20 min. video completed not know

    • @39harshitsahu36
      @39harshitsahu36 2 หลายเดือนก่อน

      i can feel you

  • @mahimasingh7524
    @mahimasingh7524 3 หลายเดือนก่อน +8

    I had a fear of javascript but because of these series I'm able to understand how javascript works actually thank you so much sir ❤

  • @quickSilverXMen
    @quickSilverXMen ปีที่แล้ว +14

    @0:20 begining
    @5:13 optional chaining
    @5:52 combining objects 🔻
    {
    @11:09 spread operator
    @13:50 accessing all keys of object (important)
    @15:34 hasownProperty (to check if the key is there )
    }

    • @Geeksforgeeks1
      @Geeksforgeeks1 ปีที่แล้ว

      constructor time stamp?

    • @adityadomle1
      @adityadomle1 25 วันที่ผ่านมา

      hey bro so now 12
      months later what are you doing right now job , clg , internship or what please guid me !!!!!!!!!!

  • @_coding_santa
    @_coding_santa ปีที่แล้ว +3

    best teacher everrrr evryone try to coverup quickly but this guy .....lovee

  • @codinghero2001
    @codinghero2001 ปีที่แล้ว +5

    The Best JS series on TH-cam.. Thank you so much!!!!!

    • @adityadomle1
      @adityadomle1 25 วันที่ผ่านมา

      hey bro so now 12 months later what are you doing right now job , clg , internship or what please guid me !!!!!!!!!!

  • @guitargig123
    @guitargig123 11 หลายเดือนก่อน +4

    Series started very simple but now started getting intense, getting into more depth. Thank you

    • @adityadomle1
      @adityadomle1 25 วันที่ผ่านมา +1

      hey bro so now 10 months later what are you doing right now job , clg , internship or what please guid me !!!!!!!!!!

  • @BhaiyaX
    @BhaiyaX 4 หลายเดือนก่อน +4

    Just came from apna college playlist....
    I have to say this now
    This is Damm good....❤❤❤

    • @adityadomle1
      @adityadomle1 25 วันที่ผ่านมา

      hey bro so now 3 months later what are you doing right now job , clg , internship or what please guid me !!!!!!!!!!

  • @mr.researcher1525
    @mr.researcher1525 ปีที่แล้ว +5

    Thank..u...back..again. Plz.. continue..the..whole..series.plz..🤗

    • @adityadomle1
      @adityadomle1 25 วันที่ผ่านมา

      hey bro so now 12months later what are you doing right now job , clg , internship or what please guid me !!!!!!!!!!

  • @AakashSisodiya2711
    @AakashSisodiya2711 7 หลายเดือนก่อน +5

    really first j/s series hai jisme mja aarha hai👌👌

    • @adityadomle1
      @adityadomle1 25 วันที่ผ่านมา

      hey bro so now 6 months later what are you doing right now job , clg , internship or what please guid me !!!!!!!!!!

  • @sandeepchoudhary3744
    @sandeepchoudhary3744 หลายเดือนก่อน +3

    for object.assign alwways keep in mind that key must be different otherwise it will overwrite the value
    for eg :
    const obj1 = {
    name: "sandeep",
    age: 30
    }
    const obj2 = {
    name: "mandeep",
    age: 40
    }
    const obj3 = Object.assign({}, obj1, obj2);
    console.log(obj3);
    // output will be
    {name :'mandeep' , age :40 }

  • @ayush.tiwarios2105
    @ayush.tiwarios2105 6 หลายเดือนก่อน +6

    00:02 In this video, we will talk about creating singletons and constructors in JavaScript objects.
    01:56 Giving unique IDs to standard and regular users in Javascript
    04:03 Accessing and nesting objects in JavaScript using dot notation
    05:53 Combining objects in Javascript
    07:55 Object.assign() copies all properties from multiple source objects into a target object.
    09:58 Using spread operator for object cloning in JavaScript
    11:57 Accessing and manipulating object values in JavaScript
    13:54 Objects in JavaScript can be manipulated and accessed using various methods.
    15:52 Understanding properties and methods in JavaScript objects
    17:40 Understanding big objects in JavaScript

  • @ThelookAt
    @ThelookAt ปีที่แล้ว +6

    That's good sir🎉🎉❤ after completing pw skill lecture this is literally very helpful

  • @HydroJudge
    @HydroJudge ปีที่แล้ว +2

    Sir iss se pehle wala lecture Symbol and this keyword and square notations as well as using double quotes for key names it was really out of the box. Bohot bohot dhanyavaad sir

  • @furqanbaber5326
    @furqanbaber5326 ปีที่แล้ว +2

    I am watching this playlist from Pakistan and your teaching way is Amazing ❤❤❤ God bless you

    • @adityadomle1
      @adityadomle1 25 วันที่ผ่านมา

      hey bro so now 12 months later what are you doing right now job , clg , internship or what please guid me !!!!!!!!!!

  • @tarunsoni2443
    @tarunsoni2443 ปีที่แล้ว +3

    I would like to share my observation as well...
    let Obj1 = { 1: "a", 2: "b" };
    let Obj2 = { 3: "c", 4: "d" };
    let Obj3 = { ...Obj1, ...Obj2 }; //Here I have used spread operator but in order to access I need to use []
    let Obj4 = Object.assign({}, Obj1, Obj2); //Best practice beacause it would not change the source object (Obj1)
    //let Obj4 = Object.assign(Obj1, Obj2); //Bad practice
    console.log(Obj1); //It make changes in target Object as well.
    Thanks a ton sir!

    • @adityadomle1
      @adityadomle1 25 วันที่ผ่านมา +1

      hey bro so now 12
      months later what are you doing right now job , clg , internship or what please guid me !!!!!!!!!!

    • @tarunsoni2443
      @tarunsoni2443 25 วันที่ผ่านมา +1

      @adityadomle1 Job.
      Try to get a job and then learn on the go. That's all my advice would be.

    • @adityadomle1
      @adityadomle1 25 วันที่ผ่านมา

      @@tarunsoni2443 thankS bro ... Btw can I add you on my LinkedIn

  • @babarshabbir2554
    @babarshabbir2554 8 หลายเดือนก่อน +1

    "Excellent explanation of objects in JavaScript, with clear examples and real-world application. Highly recommended!" #javascript #chai

  • @kamitp4972
    @kamitp4972 9 หลายเดือนก่อน

    One of the best free resource on Yt without any doubt

  • @ayush-l1f8s
    @ayush-l1f8s 3 หลายเดือนก่อน +2

    const obj1 = {a:1}
    const obj2 = {b:2}
    const obj3 = Object.assign([],obj1,obj2)
    console.log(obj3)
    [1, 2]
    [[Prototype]]
    :
    []

  • @HabibHaseeb716
    @HabibHaseeb716 10 หลายเดือนก่อน

    Best series for learning js sir I appreciate you very much.

  • @AyushJain128
    @AyushJain128 11 หลายเดือนก่อน

    really best javascript eries keep going on sir you are the one of the best teacher in my life

  • @Code..188
    @Code..188 10 หลายเดือนก่อน +1

    Best series of js ❤

  • @photosofmine3443
    @photosofmine3443 6 หลายเดือนก่อน +2

    SUMMARY :
    1.To declare singleton object => new Object( );
    2. To merge object use spread operartor. {...Obj1, ...Obj2 } or
    Object.assign( { }, obj1,obj2 ):
    3. To return keys from object => Object.keys(object name);
    4.To return values from object => Object.values(object name);
    5.To check property of object => Object.hasOwnProperty(key/value name);

  • @Ssa-2128
    @Ssa-2128 11 หลายเดือนก่อน

    Seriously sir ,ur way of teaching technique is just drop dead gorgeous 🥰💞

  • @debajyotimitra369
    @debajyotimitra369 2 หลายเดือนก่อน

    just Loving this playlist ❤

  • @meenakshimeeen
    @meenakshimeeen 12 วันที่ผ่านมา

    best javascript tutorial ❤

  • @soahibasif659
    @soahibasif659 9 หลายเดือนก่อน

    best javascript course ever made

  • @SaadatGames
    @SaadatGames 4 หลายเดือนก่อน

    amazing course 4 ever ❤💕👌

  • @rajshekharmishra9151
    @rajshekharmishra9151 11 หลายเดือนก่อน

    it's all thanks to your hardwork sir i am able to see why js is an amazing language , please keep up the good work

  • @Al-taram2025
    @Al-taram2025 ปีที่แล้ว +1

    Best teacher in YT

  • @anuraggupta1008
    @anuraggupta1008 11 หลายเดือนก่อน

    deep understanding of javascript object now love chai aur code

  • @qaiserhameedkhan8147
    @qaiserhameedkhan8147 11 หลายเดือนก่อน +1

    Boht Achi Series h Sir

  • @Mranimater_0
    @Mranimater_0 ปีที่แล้ว

    ❤❤❤❤❤ you are a good programmer you always clear all doubts easily

  • @RagSingh-e2e
    @RagSingh-e2e 11 หลายเดือนก่อน

    best Series ALL OVER UNIVERSE, thank you Sir 🙏

  • @ReenaSharma-r1q
    @ReenaSharma-r1q 9 หลายเดือนก่อน

    best teacher till now

  • @KaushalSingh-b6u
    @KaushalSingh-b6u 6 หลายเดือนก่อน +2

    at 8:19 is it correct
    const obj1 = {1:"a",2:"b"}
    const obj2 = {3:"a", 4:"b"}
    const obj3 = {...obj1,...obj2}
    console.log(obj3)

  • @siddhimaharana5602
    @siddhimaharana5602 ปีที่แล้ว

    This could have took me a whole year to understand until discovering your playlist❤❤🙏

  • @khushpun7897
    @khushpun7897 11 หลายเดือนก่อน

    best javascript course ever made 🔥

  • @tech_channel110
    @tech_channel110 ปีที่แล้ว +1

    world class series of javascript

  • @tayyabsami258
    @tayyabsami258 7 หลายเดือนก่อน +1

    Giving an Empty object as a target will not modify the value of obj1 , if we donot give the empty object as target then It will consider Obj1 as target and the value of Obj1 will be modified.

  • @Vijay-ih7cv
    @Vijay-ih7cv ปีที่แล้ว +1

    Hitesh Bhai you are awesome ❤

  • @rohanmaiti7013
    @rohanmaiti7013 ปีที่แล้ว

    absolutely mind blowing video ..just love it

  • @shoaibsaifi5292
    @shoaibsaifi5292 5 หลายเดือนก่อน

    Asli Gyaan Yahan milta hai 💥

  • @Vardanaggarwal
    @Vardanaggarwal 8 หลายเดือนก่อน

    Amazing and indepth series.

  • @natureslove2938
    @natureslove2938 7 หลายเดือนก่อน +1

    thanks sir👍👍

  • @vishalraut265
    @vishalraut265 ปีที่แล้ว +1

    Very helpful video thanks 🙏

  • @NaveedGAiE
    @NaveedGAiE 8 หลายเดือนก่อน

    This is very awesome series

  • @mansisrivastav2975
    @mansisrivastav2975 ปีที่แล้ว

    having chai while watching your videos is too much fun to learn...

  • @gauravmoreshwar1727
    @gauravmoreshwar1727 ปีที่แล้ว +2

    So addictive ❤

  • @suvadipghosh1385
    @suvadipghosh1385 9 หลายเดือนก่อน

    Fantastic video...great learning

  • @manemanoj3068
    @manemanoj3068 ปีที่แล้ว +1

    Literally learn new concept here....

  • @Yuvraj-Singh577
    @Yuvraj-Singh577 ปีที่แล้ว

    Best Teacher of JS❤

  • @softheartpeople
    @softheartpeople ปีที่แล้ว

    it's just really unbelievable. Thanks mentor

  • @pulkitgoyal8685
    @pulkitgoyal8685 11 หลายเดือนก่อน

    i think at 10:30 obj3=Object.assign({},obj1,obj2) create new space for obj3 so change in obj3 dont make any change in obj1. but in (obj1,obj2) make obj3 and obj1 connected

  • @sonukachhap6237
    @sonukachhap6237 6 หลายเดือนก่อน

    Hanjiiiiii maja aaa raha hai series ko complete karna ka

  • @ankitsainiofficial777
    @ankitsainiofficial777 ปีที่แล้ว

    I don't have words to say about this series I'm so addicted

  • @rohitbhadauriya7227
    @rohitbhadauriya7227 9 หลายเดือนก่อน

    @hitesh sir isko spread operator bi assign kr skte the hum to assign ku kiya ye doubt h mera

  • @mahimasingh7524
    @mahimasingh7524 3 หลายเดือนก่อน

    Thank you so much sir ❤

  • @shiva_gaming8122
    @shiva_gaming8122 ปีที่แล้ว

    one of the best javscript playlist.

  • @YCODIES
    @YCODIES 7 หลายเดือนก่อน

    object.assign or destructuring which is good approach

  • @vaibhavilohani3421
    @vaibhavilohani3421 ปีที่แล้ว +2

    Sir your teaching skills are awesome!!Thanks so much for this tutorial!!

  • @_Sujit-khot_
    @_Sujit-khot_ ปีที่แล้ว +1

    now i know objects really well

  • @laxmanbaisoya65
    @laxmanbaisoya65 3 หลายเดือนก่อน

    sir ager two object ki same key rhegi to third object mei spread karte time vo sirf second wale ko print karega kyu ki object2 first object ko overwrite kar dega to sir iss case mei to spread use nhi kiya jaa sakta

    • @4MV922
      @4MV922 3 หลายเดือนก่อน

      In Privious and this video dono me ek hi tarike se object declare Kiya hai to different kaise hua (singleton kaise hua)? Please help

  • @Instrumentation010
    @Instrumentation010 ปีที่แล้ว

    Just awesome, maja aa gaya

  • @kripashanker7201
    @kripashanker7201 5 หลายเดือนก่อน

    thank you sirr🙏🙏🙏🙏🙏🙏🙏🙏🙏

  • @pranjalgogoigaming-1209
    @pranjalgogoigaming-1209 ปีที่แล้ว +1

    Best Object video

  • @JiteshSalunkhe001
    @JiteshSalunkhe001 ปีที่แล้ว

    sir kya hum array me jo flat(infinity) use kiye the vo object k elements k liye use kr skte he . instade of
    (regulurUser.fullname.userfullname) . i tryed but not work .

  • @HemantKumar-zi4xr
    @HemantKumar-zi4xr ปีที่แล้ว

    Hello Bhai, agr hm array ke inside multiple object create krte with key 0,1,2 etc. to ese hm kese access krnege esme

  • @MuhammadAli-hh9td
    @MuhammadAli-hh9td 9 หลายเดือนก่อน

    One of the best

  • @nachiketaverma1758
    @nachiketaverma1758 หลายเดือนก่อน

    Please correct me if I'm wrong you said object created using constructor are objects literal but in Google it's says object created by object literals are singleton I'm confused

  • @developermohsin6594
    @developermohsin6594 ปีที่แล้ว

    Teaching style man 🔥❤

  • @icebear5654
    @icebear5654 8 หลายเดือนก่อน

    weren't we supposed to initialize const variables?

  • @debabratabhunia8724
    @debabratabhunia8724 10 หลายเดือนก่อน +1

    Sir, const obj1= new Object(); is not a Singleton object

  • @shreshthagupta7771
    @shreshthagupta7771 ปีที่แล้ว +3

    At 13:00 you are actually accessing second object from array if you write user[1]

    • @dhaneshkumar9304
      @dhaneshkumar9304 10 หลายเดือนก่อน +1

      me bi yahi bolne wala tha

  • @misbahsiddiqui9365
    @misbahsiddiqui9365 ปีที่แล้ว

    Sir your playlist is Supercalifragilisticexpialidocious!!!!!

  • @ArpanChhapre
    @ArpanChhapre ปีที่แล้ว

    you are providing the realtime content which will surely use in our projects when we will get in any company, not only the bookish knowledge but the things from your own experience. this is great bhai. you are pure gem of teaching. i never see this type of content anywhere , this is the best tutorial someone can ever have. Thank you so much .

  • @kurulususman-
    @kurulususman- 8 หลายเดือนก่อน

    Great job

  • @PranjayVats-u4p
    @PranjayVats-u4p 2 หลายเดือนก่อน

    Can anyone explain how const tinder = new Object() is a Singleton and const tinder = {} is not? Because when I was checking it on gpt for more clarfication, its saying that "neither const tinder = new Object() nor const tinder = {} creates a singleton object. Both are just different ways to create a new object instance".

  • @allaboutgames2244
    @allaboutgames2244 7 หลายเดือนก่อน

    best series blessings from pakistan

  • @srishtikhurana4139
    @srishtikhurana4139 10 หลายเดือนก่อน

    you are super awsm!!

  • @techkul861
    @techkul861 ปีที่แล้ว

    Thank you sir for this amazing Tutorial

  • @sadiakhan5371
    @sadiakhan5371 5 หลายเดือนก่อน +1

    9:23 there were two b , b:2 and b:4 but in expected output only b:4 is mentioned where is b:2 ?

    • @mdtausifahmed6205
      @mdtausifahmed6205 4 หลายเดือนก่อน

      may be it took greater value variable

  • @harsh-alashi
    @harsh-alashi ปีที่แล้ว

    Thank You Hitesh Sir!

  • @yourclips1034
    @yourclips1034 ปีที่แล้ว

    Sir, mujhe logic building sikhna hai but sikh nahi pa raha hu kyu ki koi video me samjh hi nahi a rha hai kkse structure banau kaise logic plant samjh nahi ata or product level par koi project sikhao sir, sath me interview bhi nikal jaye

  • @musaafirhoonyaaron2379
    @musaafirhoonyaaron2379 ปีที่แล้ว +1

    Bhaiya in video 8:30 You're explaining how to merging two objects but the same thing I am doing in my Laptop I am getting different output
    const obj1 = {number: '1', isThere: true, name: 'sphix'};
    const obj2 = {number: '2', isThere: false, name: 'canopus'};
    const obj3 = Object.assign({}, obj1, obj2);
    console.log(obj3);
    Output { number: '2', isThere: false, name: 'canopus' }
    While I search the issue on CHATGPT, It's telling that It's Overwriting the values
    **********************CHAT GPT Response********************************************
    The `Object.assign()` method in JavaScript is used to copy the values of all enumerable properties from one or more source objects to a target object. In your case, you are creating a new object (`obj3`) by merging the properties of `obj1` and `obj2` into an empty object `{}`.
    The reason you are not seeing the properties of `obj1` in the result is because the properties of `obj2` are overwriting the properties of `obj1` during the assignment. The `Object.assign()` method assigns values from right to left, so the properties of `obj2` overwrite the corresponding properties of `obj1` in the new object.
    If you want to include the properties of both `obj1` and `obj2` in the resulting object, you can swap the order of the objects in the `Object.assign()` method:
    ```javascript
    let obj3 = Object.assign({}, obj2, obj1);
    console.log(obj3);
    ```
    Now, the properties of `obj1` will overwrite the properties of `obj2` in the resulting object. Keep in mind that if there are overlapping properties with different values, the values from the object on the right will take precedence.

    • @musaafirhoonyaaron2379
      @musaafirhoonyaaron2379 ปีที่แล้ว +1

      I got my mistake when I watch ahead. My Bad Sorry Sir

    • @adityadomle1
      @adityadomle1 25 วันที่ผ่านมา

      ​@@musaafirhoonyaaron2379 hey bro so now 10 months later what are you doing right now job , clg , internship or what please guid me !!!!!!!!!!

  • @PranavBagul-h7z
    @PranavBagul-h7z 6 หลายเดือนก่อน

    it serise is next level

  • @bharatmali-
    @bharatmali- ปีที่แล้ว +2

    @ 17:29 end

  • @Iamdakshsaini
    @Iamdakshsaini หลายเดือนก่อน

    which theme sir is using for vscode?

  • @Subha_life
    @Subha_life ปีที่แล้ว

    just beautiful series

  • @chudasamaparthrajsinh62
    @chudasamaparthrajsinh62 ปีที่แล้ว

    Sir please ek interview que. ka video banaye for biginners

  • @SumitBhoumik
    @SumitBhoumik ปีที่แล้ว

    Sir next js ka series kab se start hoga?

  • @akashmapari1127
    @akashmapari1127 ปีที่แล้ว +3

    I don't have words to say about this series I'm so addicted . Before this series i hate javascript I don't want to learn but now i am waiting for new video please post new video as soon as possible thank you sir you are doing great work 💯❤

  • @Anees_Coding
    @Anees_Coding 10 หลายเดือนก่อน

    If the keys of both objects are the same, the spread operator is producing unexpected output.

  • @_Blackwolf_01
    @_Blackwolf_01 ปีที่แล้ว +1

    this keyword kise use kare arrow function ke sath ?

  • @FaizSultan430
    @FaizSultan430 ปีที่แล้ว

    hy sir hope u doing well
    why this happens ?
    const obj1 = {a:1}
    const obj2 = {a:2}
    const spread = {...obj1, ...obj2}
    console.log(spread, "from spread");
    and the answer is____ { a: 2 } from spread
    why { a: 2 } not {a : 1 }

    • @VikashSingh-hc6zo
      @VikashSingh-hc6zo ปีที่แล้ว +1

      because both object has same property name so spread will overide the value of last object..

  • @boogeyman-t3z
    @boogeyman-t3z หลายเดือนก่อน

    ek number

  • @arshitcc
    @arshitcc 10 หลายเดือนก่อน

    Thank you Sir

  • @Bharat_Rider
    @Bharat_Rider ปีที่แล้ว

    Thank you sir ❤❤

  • @DilipKumar-zp7jg
    @DilipKumar-zp7jg ปีที่แล้ว

    I think you missed constructor
    And how singleton is object is created can you explain in detail

  • @kishandave722
    @kishandave722 ปีที่แล้ว

    love this tutorial 😍😍😍😍😍

  • @vivekbhakhri735
    @vivekbhakhri735 ปีที่แล้ว

    Awesome!!