Array part 2 in Javascript 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 • 164

  • @pradeepucshorts
    @pradeepucshorts Před rokem +80

    Finally cylender aa gyi, ab chai garam ho jayegi!

  • @Suman-ze8zz
    @Suman-ze8zz Před 4 měsíci +5

    Key Takeaways
    1. push() method in array simply add the array as an new single entity in the existing array.
    2. concat() method help us achieving a desisered output, like merging the two array, but the problems with concat are, It complicated to concat more then one array simultaneously and also It takes extra space and do the merging operation.
    3. Despite push and concat we should use spread operator.
    4. Intresting methods, isArray(), from() and of()

  • @Aniket_0314
    @Aniket_0314 Před 11 měsíci +14

    I love jb sir modern heroes ki jgh old time k heroes k reference dete . Makes me feel like he's someone very simple and remembers old time and cherishes it . Although loving the playlist , thanks for the efforts sir

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

    "I've tried other tutorials, but Chai aur Code is on another level. The perfect JavaScript mentor!"

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

    I can relate him as a Web Developer trainer as when at 6:36 he's explaining about Concatenation he's getting unexpected output because sometimes we don't use some methods oftenly so we don't have confidence on it's output and get confused why is that happening, but to keep students motivated and don't let them think Sir ko itna bhi nhi ata we immediately try to show Oh we knew this will occur.. but then we take 1 min break for rechecking and then we debug and explain why that happened 😅😂

  • @AmitPandey_10
    @AmitPandey_10 Před 11 měsíci +42

    we can merge multiple arrays using concat as well like spread syntax..
    const Array1 = [1,2,3,4,5];
    const Array2 = [5,6,7,8,9,10];
    const Array3 = [0,0,0];
    const Array4 = [1,3,9,19];
    const concatAll = Array1.concat(Array2, Array3,Array4)
    console.log(concatAll)

  • @digantadutta2275
    @digantadutta2275 Před 6 měsíci +4

    Man you speak in a very lovable manner. Huge Respect for that, it takes a lot to teach and then to teach in this way is really very appreciable.

  • @shadikhusain1216
    @shadikhusain1216 Před rokem +4

    Sir really aap jo quality content hume dete hai vo kisi paid courses se behad behtar hai. Region ki aap industry requirment chize bata rahe hai. Aap vo sabb cover kara rahe jiska real mai industry mai use hai aur most of the code use kerte hai everyone project ko build kerne mai. Baaki youtube mentor bahut hai but aap unique person hain +industry expert hai. Ekk beginner wale coder ki jaan hai.❤😂

  • @sainaid
    @sainaid Před 4 měsíci +2

    I'm addicted to this series... your way of explaining is simple and crystal clear. ❤

  • @Abhishekk-Sharmaa
    @Abhishekk-Sharmaa Před 8 měsíci +1

    spread operator har kahi se padhkar dekh liya bahut tough lag raha tha but ab apki videos se ek dum mast samajh mein aaya glass todne ke baad 😁

  • @shobitkhatri9242
    @shobitkhatri9242 Před 9 měsíci +7

    It was very easy to understand the concept of spread operator with the help of glass break example thank you so much hitesh sir for this mindblowing javascript series

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

    Outstanding explanation,
    just like a wow

  • @endgame3842
    @endgame3842 Před rokem +1

    Dekh rhaa lagatarr aap bs sir u hi lagerhoo.. love and respect

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

    very well explained
    you are tech champion
    very good and quality content on youtube for free,
    its a blessing sir
    thank you for all these quality

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

    Outstanding explanation, just like a wow😂

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

    Thanks for this helpful video. love and respect for you🥰

  • @mdkalam-gx1lc
    @mdkalam-gx1lc Před 10 měsíci +1

    Thank you so much sir ❤❤❤❤❤❤❤❤❤for this series

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

    best Series ALL OVER UNIVERSE, thank you Sir 🙏

  • @shees143.
    @shees143. Před 29 dny

    Your smile so good which give us positive energy 😊

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

    sir koi baat nahi doosre kaam bhi dekhna zaroori he, aap bas video banate rahiyega, we are thankful of you

  • @ruchikarawani
    @ruchikarawani Před 23 dny

    Love the way he teaches

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

    Perfect series ❤

  • @himanshu_baghel_07
    @himanshu_baghel_07 Před 7 měsíci

    Thank you sir for this aweome vidoes🙏

  • @pranjalgogoigaming-1209
    @pranjalgogoigaming-1209 Před 8 měsíci

    GREAT DETAIL TEACHING

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

    Thanks for this amazing video!!

  • @LearnWithManan.110
    @LearnWithManan.110 Před 4 měsíci

    this coures is looking like a WOW🤩

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

    Keep going sir❤

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

    best Playlist for js all time

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

    Keep it sir 🔥🔥🔥🔥❤❤

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

    The guy disserve more subscriber.

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

    best series

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

    bhaia ji big fan

  • @Veecast247
    @Veecast247 Před rokem +1

    Thank your sir for this js playlist ke liye

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

    very helpful.

  • @skill.spirit
    @skill.spirit Před rokem +3

    chai or aapke videos , very addictive sir

    • @chaiaurcode
      @chaiaurcode  Před rokem +10

      Bs isi baat pe 1 aur video abhi upload krte h

    • @skill.spirit
      @skill.spirit Před rokem

      @@chaiaurcode thanks sir😍😍

  • @AnilGupta-nv9lz
    @AnilGupta-nv9lz Před rokem

    Welcome back sir

  • @user-qf3qy5dn9k
    @user-qf3qy5dn9k Před 11 měsíci +2

    Thank your sir for this js playlist ke liye
    Please React Js ka playlist layiye

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

    god or wott sir

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

    Thank you sir

  • @manemanoj3068
    @manemanoj3068 Před rokem +1

    Maza aagya bhayya

  • @shadikhusain1216
    @shadikhusain1216 Před rokem +2

    Great sir 👍. But js complete hone ke baad ekk project ko buildup kijiyega sir.🙏 really full confidence tabhi banega.

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

    धन्यवाद सर

  • @harshitsingla1569
    @harshitsingla1569 Před 20 dny

    concat method can also combine multiple arrays

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

    Sir ky flat me jo infinity hai usko real me bhi use kr sakte hai ya fir aapne for example bhi bataya hai

  • @Android-17
    @Android-17 Před 6 měsíci

    Arrays🔥

  • @anirudhnautiyal2336
    @anirudhnautiyal2336 Před 7 měsíci

    Thak you sir❤❤❤

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

    thank you !

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

    goog work

  • @jrahul42
    @jrahul42 Před 12 dny

    nice video

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

    Thanks sir 💖
    15/51 done [5.1.24] ✅✅

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

    OP

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

    Auto save on delay on karlo sir
    Chai pine ka wqt mil jayega!

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

    Thanks

  • @NiteshChaudhary07.
    @NiteshChaudhary07. Před 8 měsíci +2

    Hello Hitesh

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

    Hi, sir, My name is Rutuja, and I enjoy watching your videos. I would like to ask for guidance on how to practice arrays. Could you provide me with some resources for solving questions related to arrays? I am preparing for an interview.

  • @ayush.tiwarios2105
    @ayush.tiwarios2105 Před 6 dny

    00:02 Delays will happen but the JavaScript series will continue.
    01:44 Exploring more array methods and accessing prototypes through console inspection.
    03:49 Exploring array manipulation and data access in JavaScript
    05:48 Understanding the difference between push and concat methods in JavaScript
    07:44 Spread operator in JavaScript
    09:38 Understanding depth in recursive analysis.
    11:54 Converting values to arrays in JavaScript (Hindi)
    13:45 Conversion of variables and arrays into arrays in JavaScript.

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

    dil khush hogya

  • @Kamlesh_k21
    @Kamlesh_k21 Před 11 dny +2

    at 13:45 how to give key and value?
    vo to batao.

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

    Javascript padata to har koi hai, but Hitesh sir jaise koi nhi padhata, kahi nahi padhata, or na hi koi padhayega!!

  • @See-logic
    @See-logic Před rokem

    Unique content

  • @vrajverma3907
    @vrajverma3907 Před rokem

    Finally

  • @satyajeetarakha7654
    @satyajeetarakha7654 Před rokem +2

    Bahot jaldi video aagaya

    • @chaiaurcode
      @chaiaurcode  Před rokem +11

      Free content daalne pe b log taane marte h kya? 😂

    • @vrajverma3907
      @vrajverma3907 Před rokem +4

      Not only free, jabardast video and sound quality ke sath free content

    • @satyajeetarakha7654
      @satyajeetarakha7654 Před rokem

      @@chaiaurcode Nehi g mai toh soch raha ta aur thoda time lagege. Btw Der Aaye Durust Aaye. Aur ek baat CZcams me free ki content bahot sare hain.

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

    Paaji kamaal kar ditta 🙇
    Inna vadhiya samjhaya hai aapne
    var i = 0;
    while (i < 10) {
    console.log("Gulaabi Dil");
    }

  • @malik-pureheart3452
    @malik-pureheart3452 Před 5 měsíci +1

    How to add breakpoint in developer tool....for e.g. in line 2,5,8,11,12,13,...shortcut key to add these breakpoints??

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

  • @UpendraYadav-tm4ql
    @UpendraYadav-tm4ql Před 6 měsíci

    sir @chai aur code there is mistake while explaining
    push and concat
    concat jo hai wo new array generate karta hai
    but aap ne jo uppar wala push operation hai usko comment nhi kiya isleye concat ko run karte time same output
    warna concat aur push differntly work karte hai
    please check and review this
    and i love learning here
    Thank you for such great content

    • @UpendraYadav-tm4ql
      @UpendraYadav-tm4ql Před 6 měsíci

      sir apne fix kar diya baad mai 😅😅 maine aage jaa ke dheka

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

    sir if marvel_heros is const then how we are changing the value of const variable by using push method

  • @arshad1781
    @arshad1781 Před rokem

    G bilkul

  • @cyberwarrior1415
    @cyberwarrior1415 Před měsícem +3

    const someObj = {name: "hitesh"}
    const objectVar = [someObj]
    console.log(Array.from(objectVar));

  • @singhkr
    @singhkr Před 7 měsíci

    ❤❤❤

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

    Sir pls increase sound of video ,bcz i have full sound still not enough

  • @mohdjunaid4332
    @mohdjunaid4332 Před rokem +1

    Sir mai sirf aapki wajah se pwskills join kar rha hu plz aap mujhe assure kar dijiye k aap wahan full course finish karwayenge

  • @tejaskhanolkar3844
    @tejaskhanolkar3844 Před rokem

    👍

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

    concat returns a new array with both array concatinated

  • @Priyanka-bd6um
    @Priyanka-bd6um Před rokem

    Thank you

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

    can you please make type script series in Hindi?

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

    correction - we can use concat to add as many arrays as we need.

  • @NoorKhan-lr2tt
    @NoorKhan-lr2tt Před měsícem

    THANKS SIR FROM PAKISTAN🇵🇰

  • @dnyaneshwarkolhe9959
    @dnyaneshwarkolhe9959 Před 20 dny

    Spread operator: My example is tomato bucket, spreading all tomato's on the ground. and rest operator is opposite of it collecting all tomato's on the ground in the bucket. so bucket is array and elements are the tomato's

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

    Day 12 completed ✅

  • @firos5381
    @firos5381 Před rokem

    kya me ek baat puch saktha hu ki iske pehle wale vedios sab dekhe teh par ab ithni vakth bhat phir se shuru kar raha he toh pehlee wala sub consepts yaad nahi raha toh like woh sab phirse dekhna ho ga . mere dimag mei aisa hi hei sir like bhuul jatha hu thodi vakth ke baath agar revise nahi karee toh

  • @NovaAdarsh
    @NovaAdarsh Před 4 měsíci +2

    Sir aapko kyo lagta hai hum is video ko share karenge wo bhi apne college groups me
    Kaun chahta hai uske dost bhi padhe 😂
    Or us group me share karne se gaali or pdegi

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

    😍😍😍😍😍

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

      hlw bro, tumko github achhe se use karna ata hai pata nahi yaar kya hua hai commit aur push ho nhi raha thoda help kar dete yaar

  • @LearningWithEnjoyment933

    Sir include and isArray same work karte hai kya ya phir difference hai dono me

    • @karanmaheshwari9550
      @karanmaheshwari9550 Před rokem +1

      Include is use to check the passing element is present in array or not, but isArray is used to check the typeof of element passed is of Array or not.

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

    push and concat both are different

  • @zohaiblashari
    @zohaiblashari Před 24 dny +1

    7:10 bro return a new array mean
    Let hero = marvelHero.concat(dcHero);
    console.log(hero);
    //Output: spider man, thor, Iron ma, Super man,bad man, flash
    7:11 I think now I started a CZcams channel
    7:12
    7:13
    7:14
    7:15
    7:16
    7:17
    7:18
    7:19
    7:20

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

    done ✅

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

    @chaiaurcode Facing issue when print the array of flat - "another_array.flat is not a function"

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

      you have to use flat() function, you are just using "another_array.flat" where flat is not a function.
      When you call a funtion it must be written in proper syntax :
      function_name()
      example:
      you have a function named cars, then it must be written like cars().

  • @photosofmine3443
    @photosofmine3443 Před 2 dny

    SUMMARRY :
    1. Spread operator( ...arrayName) = to create a shallow copy of an array,to join/concatenate arrays,to add elements to an array.
    2. .flat(infinity) = to flatten infinity level nested arrays.
    3. .from = for converting array-like and objects into arrays.
    4. for creating new arrays from a set of values, regardless of how many values are provided or their types.

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

    ❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤

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

    DONE

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

    we are declaring the arrays initially as const, then later on we are changing the values in it. how it this possible.

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

      See the data type of array are non primitive it means we will get the reference of the original memory
      So although they are declare as const "we change the element in the array" i.e arr1[1] = 1 will not give any error
      But we can't change the array itself that
      Doing arr1 = arr2 will give error due to const
      Hope this will.make u understand 😊

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

    Bro all new hero me ... Three dote ku diye hai isse jada bhi de sakte hai

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

      (...) It is the syntax of spread operator. So there can only be three dots as per ES6 in the spread operator.
      Here Sir used it to copy the elements of dc_heros and marvel_heros into all_new_heros.

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

    const myObject = { a: 1, b: 2, c: 3 };
    // Using Object.entries and Array.from
    const myArray = Array.from(Object.entries(myObject), ([key, value]) => value);
    console.log(myArray); // [1, 2, 3]

  • @mohdsultan2023
    @mohdsultan2023 Před rokem +1

    Done with 15th video ✔☑✅

  • @onlineadda4516
    @onlineadda4516 Před 24 dny

    08:00= Spread Operator,

  • @malavparekh8187
    @malavparekh8187 Před 29 dny

    what is this theme? name?

  • @user-jc2is7zo4o
    @user-jc2is7zo4o Před 8 měsíci

    when i print allHeros i got output as :
    all Heros::: [
    'superman',
    'batman',
    'aquaman',
    [ 'thor', 'spiderman', 'black panther' ],
    'thor',
    'spiderman',
    'black panther'
    ]
    now what is the problem??

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

    Chai sir Nomeste ❤ i am read

  • @anonmyous.....
    @anonmyous..... Před 17 dny

    8:19 per mere pass to steel ka glsas he