ES6 Tutorial #5: Array Destructuring in ES6 in JavaScript in Hindi 2020

Поделиться
HTML-код
  • Опубликовано: 16 сен 2024
  • Welcome, we will see Array Destructuring in ES6 in JavaScript in Hindi. ES6 Array Destructuring explained. The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables.
    ➡️ ECMAScript Tutorial in Hindi 2020: • Modern JavaScript ES6 ...
    ➡️ ES5 & ES6 | ECMAScript 6 in One Video in Hindi: • ES5 & ES6 | ECMAScript...
    ➡️ JavaScript Game Development Series in 2020: • JavaScript Game Develo...
    ➡️ Source Code Link: www.thapatechn...
    ➡️ Top 5 Programming Languages in 2020: • Top 5 Programming Lang...
    Check Here ➡️ Advanced JavaScript in Hindi Playlist: • Advanced JavaScript Tu...
    ➡️ Ludo Game JavaScript Link: • JavaScript Game in Hin...
    ➡️Plz show some love to My Siter RUclips Channel and Plz Subscribe Link: / @mayabeautyvlogs878
    **************** MUST WATCH VIDEOS *****************
    ➡️ How to become a Full Stack Developer 2020: • How to become a Full S...
    ➡️ How To Become a Web Developer 2020: • How To Become a Web De...
    ➡️ How JavaScript Works: • How JavaScript Works i...
    ➡️ Follow me on Instagram: / vinodthapa55
    ************ Must Watch Videos For Web Development.************
    ➡️ HTML in One Video: • Learn HTML in One Vide...
    ➡️ CSS in One video: • Learn Complete CSS In ...
    ➡️ CSS FlexBox in 30 Minutes: • CSS FlexBox in 30 Minu...
    ➡️ JavaScript in One video: • JavaScript in One Vide...
    ➡️ ECMAScript 6 in One Video : • ES5 & ES6 | ECMAScript...
    ➡️ HTML5 in one video: • HTML5 Tutorial in One ...
    ➡️ CSS3 in one video: • Learn Complete CSS3 In...
    ➡️ Bootstrap4 in One video: • Bootstrap 4 in One Vid...
    ➡️ Jquery in One video: • jQuery in One Video in...
    ➡️ JSON in one video: • JSON in One Video in H...
    ➡️ ReactJS in one video: • ReactJS For Beginners ...
    ➡️ PHP in One Video: • PHP TUTORIAL IN ONE VI...
    ➡️ NodeJS in one video: / ipnwakoibt
    ➡️ MySQL in one video: • Complete SQL & MySQL i...
    Make Website Responsive Using Media Queries in One Video in Hindi | Web Design Tutorial in Hindi
    ➡️ Link: • Make Website Responsiv...
    DONATION FOR SUPPORT: PhonePay = vinodbahadur@ybl GooglePay: vbthapa55@oksbi
    Believe me, all this money will be used to make more quality videos and to make my channel grow. So that I can always provide you awesome free videos :)
    Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.
    Don't Forget to Follow me on all Social Network,
    Website Link: www.thapatechn...
    Instagram Link: / vinodthapa55
    Facebook Link: / vinodthapa55
    Twitter Link: / vb55thapa
    Facebook ThapaTechnical Page Link: www.facebook.c...

Комментарии • 115

  • @ThapaTechnical
    @ThapaTechnical  4 года назад +4

    Guys, program krna jarror n paste here, Check Here the complete Playlist ➡️ ECMAScript Tutorial in Hindi 2020: ruclips.net/p/PLwGdqUZWnOp19VX-DM4oHtmWhDfWblFh-
    ➡️ Advanced JavaScript in Hindi Playlist: ruclips.net/p/PLwGdqUZWnOp0hSGwasCjbrWSPrEKqB_kz&disable_polymer=true

  • @khansawidhani9899
    @khansawidhani9899 3 года назад +9

    From Pakistan. Your videos are really informative and this one of course helped a lot when i was searching for destructuring in Urdu or Hindi. Finally caught you. Thanks and keep going on.

  • @VandanaSharma-ec6zl
    @VandanaSharma-ec6zl 2 года назад +1

    thank you so much for taking birth . had u not been there i would have just been a person who wants to learn coding , but now i am a student of coding .. thank you so much .....my all blessings to you ..

  • @DEEPANSHU_NAG
    @DEEPANSHU_NAG 4 года назад +17

    11:50 swap any two nos without using third variable
    let a = 5 , b= 10;
    a= a+b;
    b= a-b;
    a=a-b;
    console.log("value of a is " + a + "value of b is " + b);

    • @NadeemKhan-tv6jo
      @NadeemKhan-tv6jo 4 года назад

      bro a-b is -5 then so this program return a = -5 and b = 20

    • @DEEPANSHU_NAG
      @DEEPANSHU_NAG 4 года назад +1

      @@NadeemKhan-tv6jo *_SAHI H BRO THIK SE CALCULATE KRO OUTPUT IS a=10 AND b= 5_*

    • @631singh
      @631singh 3 года назад +1

      @@DEEPANSHU_NAG
      use es6 usse or aache se ho jayga
      console.log(`value of a is: ${a} and value of b is : ${b} .`);

    • @DEEPANSHU_NAG
      @DEEPANSHU_NAG 3 года назад

      @@631singh ✌🏻

    • @nasimreja7312
      @nasimreja7312 3 года назад +4

      let a =5;
      let b =10;
      [a,b]=[b,a]
      console.log(a,b)

  • @sonuahluwalia756
    @sonuahluwalia756 4 года назад

    sir awesome teaching big fan aap ka hu sabhi tutorial ,decent hai learnable hai easily understanding hai ,god bless you sir,

  • @divyanshjain7515
    @divyanshjain7515 3 года назад +2

    Bro your explanation part is extremely good it really help new persons to understand how actually things work ....keep going and make new videos too will support you

  • @zafarhussain8273
    @zafarhussain8273 3 года назад +1

    boom guyz me sikh gya

  • @lalit00716
    @lalit00716 4 года назад +1

    Thanks sir for explaining the think's so smoothly like piece of cake.before all stuff looking so hectic to learn but you make it easy for us.thanks once again please kindly makes video for ES7 as quickly as possible.

  • @mehtabmultani3194
    @mehtabmultani3194 3 года назад +5

    // program to swap to two numbers w/o using 3rd variable
    let a = 15;
    let b = 43;
    [a, b] = [b, a];
    console.log(`a: ${a}`);
    console.log(`b: ${b}`);

  • @royalbengal4590
    @royalbengal4590 Год назад

    Love you bro such a beautiful way to explain thank you for the support Bro Code

  • @silkydiaries2395
    @silkydiaries2395 2 года назад

    awesome explanation sir

  • @mohsinrehman666
    @mohsinrehman666 11 месяцев назад

    Very very nice ❤🎉

  • @prensudangol1547
    @prensudangol1547 9 месяцев назад

    You are god !

  • @MubasshirMiraj
    @MubasshirMiraj 3 года назад

    Amazing vedio

  • @DEEPANSHU_NAG
    @DEEPANSHU_NAG 4 года назад +2

    Awesome explanation 👏🏻

  • @AnkitNarwariya
    @AnkitNarwariya 3 года назад

    Finally 300k Completed, Congratulations brother...

  • @p.mousumipriyadarshini8677
    @p.mousumipriyadarshini8677 3 года назад

    1 2 3 and boom guys😆😆
    btw the vdo was helpful👍

  • @MonikaKumari-er4de
    @MonikaKumari-er4de Год назад

    Thank you sir

  • @afzalmahmudd8365
    @afzalmahmudd8365 3 года назад

    Thank you.

  • @bhautikvachhani8342
    @bhautikvachhani8342 Год назад

    Fabulous

  • @hello_sharma_ji
    @hello_sharma_ji 4 года назад +1

    Agar mere array me 100 value hai or mujhe first and last value dikhani hai to kya mujhe 98 "," comma use karne honge?

  • @AmeerHamza-jy5ml
    @AmeerHamza-jy5ml 4 года назад +3

    [b,a]=[a,b] swapping through Destructing !!
    because sir i have a doubt sir which array you can use have only 5 five elements and we write 3 commas between them if we have so many elements like 100 or more in this situation what is the proper way to assign our last element value ???

  • @zafarhussain8273
    @zafarhussain8273 3 года назад

    mind blowing sir

  • @prash0202
    @prash0202 3 года назад +2

    Sir, how this work for a large number of array elements? Please elaborate

  • @mohsinliaqat5442
    @mohsinliaqat5442 3 года назад

    bht awla

  • @rajbannasa7662
    @rajbannasa7662 3 года назад

    thank you so much sir

  • @saadmanahmed860
    @saadmanahmed860 4 года назад

    very good illustration

  • @bajarangjadhav8432
    @bajarangjadhav8432 4 года назад +4

    Hi, how can I get first and last element of array having dynamic length using method you explained ? thanks in advanced

  • @kashifkhan-im4jc
    @kashifkhan-im4jc 11 месяцев назад

    sir apne is mai kaha ke last waly element ko find karny se pehly lenght find karna hai agar hm ne length be find kya aur hamara array mai 1000 se be zyada element hai so ho we can write like thie let [ top1,,, toplast] yasha par tu ham 1k commas to nahi lek skty?

  • @vikassingh1628
    @vikassingh1628 2 года назад

    let a = 1;
    let b = 2;
    a = a*b;
    b = a/b;
    a = a/b;
    console.log(a);
    console.log(b);

  • @ravishmukkar6955
    @ravishmukkar6955 4 года назад +1

    sir please make a video on geo location html5

  • @aryankanani2381
    @aryankanani2381 3 года назад

    Good Contents

  • @mdshahnawaz645
    @mdshahnawaz645 8 месяцев назад

  • @easytocoding9863
    @easytocoding9863 3 года назад

    let a,b=5,10;
    b,a=a,b
    Or
    a=a*b
    b=a/b
    a=a/b
    Or
    a=a+b
    b=a-b
    a=a-b
    Ye code bhi work karega maine socha ki add aur minus ke alawa new answer du

  • @ahmadfraz9715
    @ahmadfraz9715 3 года назад

    Swaping two numbers:
    let a = 10;
    let b = 20;
    [a, b] = [b, a];
    console.log(`After Swaping a is: ${ a } and b is: ${ b } `);

  • @abhishektripathi3707
    @abhishektripathi3707 4 года назад

    ####boom guys

  • @631singh
    @631singh 3 года назад

    let a=10;
    let b=5;
    a=a+b;
    b=a-b;
    a=a-b;
    alert(`after swapping value will be a : ${a} and value of b : ${b}`);

  • @AnkitncrVlogs
    @AnkitncrVlogs Год назад

    let a = 10;
    let b = 20;
    a = a + b;
    30
    b = a -b;
    10
    a = a-b;
    a = 20; b= 10;

  • @ravinayadav9539
    @ravinayadav9539 3 года назад

    let a = 5;
    let b = 10;
    a = b ;
    b = a - 5;
    console.log(`value of a is ${a}, value of b is ${b}`);

  • @saurabrakshit405
    @saurabrakshit405 3 года назад +1

    what if I have thousands of elements in the Array , do I have to use comma 999 times?

  • @KarandeepKumar
    @KarandeepKumar 4 года назад +1

    Sir ye jo bataya apne ki hum comma(,) dalkar array items ko separate kar sakte hai..par agar kisi array me suppose 100 items hai aur muje 100th item sirf chahie to muje 99 bar comma(,) dena prega kya ???

  • @zargamhussain5481
    @zargamhussain5481 Год назад

    I only want "last wala variable" ye badiya tha 😅

  • @sunnyvlogs__
    @sunnyvlogs__ 3 года назад +1

    By using XOR operation three times.

  • @parveshkumar5470
    @parveshkumar5470 3 года назад +1

    you use only 5 variables to find the first and last value in an array. If we have more than thousand values then how to find the first and last array value?

  • @muddusarzulfiqar1657
    @muddusarzulfiqar1657 3 года назад

    Mashallah boohat acha samjaty ho bhai ap ak masla tha agar database sa koi array bna kay la rhy ha hm values or upto 1000 values a rhe ha to last one kay leya kaya hmm 999 comma lekhay gay ya kay koi or method hota????

  • @nishantsethi6625
    @nishantsethi6625 3 года назад +1

    var a=5
    var b=10
    var b=(b-a)
    var a=(a+b+b)-a
    console.log(a,b);

  • @InfoPlus4all
    @InfoPlus4all 4 года назад +1

    sir, train status ki api per video banadain. pls

  • @Dineshkumar-ic5el
    @Dineshkumar-ic5el 6 месяцев назад

    let a = 5;
    let b = 6;
    a= a+b;
    b= a-b;
    a= a-b;
    that's it.

  • @mohsinhasan1153
    @mohsinhasan1153 4 года назад

    thapa jani advance JS or ES6 same hai ya diffrance hai dono me..

  • @yasinshaikh9823
    @yasinshaikh9823 2 года назад

    let a=5; let b=10; b=(b-a); console.log(b); a=(b+a); console.log(a);

  • @pratikkamble1770
    @pratikkamble1770 11 месяцев назад

    Suppose I have 100 elements in my array
    To kya muze 98 commas lagane padhenge to get 1st n last element of array using this method? This is so headache

  • @pradipchetry4261
    @pradipchetry4261 Год назад

    We can also use this method to access last item of an array from a list
    let lastItem = myprolang [myprolang.length - 1];
    console.log(lastItem)

  • @chaqdas5972
    @chaqdas5972 9 месяцев назад

    but agar,array ki values zyda ho kasy pata chala ga ky total kitna comaa ana hai?????????

  • @kushagragautam3979
    @kushagragautam3979 4 года назад +1

    array ka size na pta ho to ? matlab arry me values dynamically backend se aa rhi hon to destructuring kaise karenge ?

  • @susandanne3107
    @susandanne3107 4 года назад

    instead of const can write let while declaring array details

  • @chizuru1999
    @chizuru1999 4 года назад +1

    Task
    let [b, a] = [a, b]

  • @rishabhchaurasia4138
    @rishabhchaurasia4138 4 года назад +1

    Thapa Sir ES6 pura complete kijiye taaki apne resume me daal kar interview de saku

  • @ashishthakkar350
    @ashishthakkar350 3 года назад

    yadi 1000 data or usme hame 1st, 25th,38,93, and last data chahiye to kya krna hoga to kitne comma ka use krna hoga to fir uska kya krna hoga

  • @ravishmukkar6955
    @ravishmukkar6955 4 года назад

    please sir make a tutorial to make visitor counter in php

  • @dumptruck3354
    @dumptruck3354 Год назад

    const arr = [5, 10];
    let [a, b] = arr;
    [a, b] = [b, a];
    console.log([b, a]);

  • @Callme_Dee.
    @Callme_Dee. 3 года назад

    do you have any refrence video for anonymous fuctions, IIFE, fiter , map& reduce...please share

    • @ThapaTechnical
      @ThapaTechnical  3 года назад

      just watch JavaScript in 16+hrs video of mine.. You will find evryting

    • @Callme_Dee.
      @Callme_Dee. 3 года назад

      @@ThapaTechnical ok i ll check thanks..and one more doubt for {...} rest opertor in object destructuring. any refrence ?? i checked your ES6 object destructuring video its not there

  • @programming_skills384
    @programming_skills384 3 года назад +1

    If we have 1000 items of array than how will handle that comma,.

  • @yogeshkumargupta265
    @yogeshkumargupta265 4 года назад

    This is not included in the Advanced tutorial playlist.. please add this video there also

  • @devbyishtiaq
    @devbyishtiaq 4 года назад

    Please make a video on youtube and facebook downloader script in php for any website

  • @md.shehabuddintushar1816
    @md.shehabuddintushar1816 3 года назад

    let a=5; let b=10;
    [a,b]=[b,a]
    console.log(a)
    console.log(b)

  • @rajendrakumar-qt3ef
    @rajendrakumar-qt3ef 4 года назад

    Sir php framework par video banayi like laravel. Codegniter

  • @rohitvora54
    @rohitvora54 3 года назад

    let A = 25;
    let B = 50;
    [A,B] = [B,A];
    console.log("A = " + A);
    console.log("B = " + B);

  • @himanshijain7174
    @himanshijain7174 4 года назад

    why you always use const for declaring variable or array, cant we use let?

  • @pk-pm5is
    @pk-pm5is 4 года назад +1

    what is java

  • @geekylearner3596
    @geekylearner3596 3 года назад

    //SWAPPING OF TWO NUMBERS WITHOUT THIRD VARIABLE
    let a = 4,
    b = 5;
    console.log(`Before swapping a is ${a} and b is ${b}`);
    a = a + b;
    b = a - b;
    a = a - b;
    console.log(`After swapping a is ${a} and b is ${b}`);

  • @aamirsaleem2213
    @aamirsaleem2213 4 года назад

    osm

  • @prashantkaushik6534
    @prashantkaushik6534 4 года назад

    सर में एक वेबपेज बनाया हू JavaScript se। RUclips जैसा
    पर वीडियो चलाने पर दूसरा वीडियो भी चलता रहता है दूसरा वीडियो स्टॉप केसे करूं ये समछ में नहीं आ रहा है।
    Please help me sir.....😟
    Thanks

  • @tannuyadav5543
    @tannuyadav5543 4 года назад

    Sir ek problem hai xampp pe login registration form work Kar raha hai but hosting pe nahi Kar raha hai

  • @hasbullakhan83
    @hasbullakhan83 4 года назад

    What is the real purpose of array destructuring? Why would anyone destruct an array? As far as i can see es6 making the process worse. In the example he used a simple array of 5 elements but when its larger its completely not feasible.

    • @mustaquekhan4255
      @mustaquekhan4255 Год назад

      The major use of array destructuring is to return an array inside a function and get those returned array values in individual varibales.
      function func( ) {
      return [''Js", 200];
      }
      let[ numb1, numb2 ] = func( );
      console.log(numb1);
      console.log(numb2);
      OUTPUT:
      Js
      200

  • @shahrukhshah3572
    @shahrukhshah3572 3 года назад

    How to search for a number or string or a boolean value from an array and print it, can anyone help.?
    const arr=['John' , 23 , true]

  • @ahmadfraz9715
    @ahmadfraz9715 3 года назад

    Program:

  • @gopalsinghchampawat4328
    @gopalsinghchampawat4328 4 года назад

    सारा कंसोल पे लोड हो रहा है, क्रिपया एचटीएमएल पेज पर लोड करना बताएं।

  • @websikhao485
    @websikhao485 3 года назад

    swap two numers without using third number ,solution using array destructing:
    const names=['Muhammad nauman','nasir','SE'];
    let[value1,,value2]=names;
    [value1,value2]=[value2,value1];
    console.log(`My name is = ${value1} and degree is ${value2}`);

  • @vijaykatake4778
    @vijaykatake4778 9 месяцев назад

    b = b-a;
    a=a+a;

  • @sabkuch1750
    @sabkuch1750 3 года назад

    let x= 2;
    let y= 4;
    x = x+y;
    y= x-y;
    x= x-y;
    console.log(x);
    console.log(y);

  • @techdreams6748
    @techdreams6748 3 года назад

    Bro why you teach your concept of JS is so weak

  • @notuzzi
    @notuzzi Год назад

    3 2 1 pilleyy

  • @goodpanda4082
    @goodpanda4082 2 года назад

    stop saying boom

  • @win8564
    @win8564 2 года назад

    stop doing this boom boom please

  • @rajbannasa7662
    @rajbannasa7662 3 года назад

    thank you so much sir

  • @hhtcp015
    @hhtcp015 4 года назад

    let a=5;
    let b=10;
    a = a+b;
    b = a-b;
    a = a-b;
    console.log(a);
    console.log(b);