For loop with break and continue in javascript | chai aur

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

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

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

    DSA Best hai🤣🤣🤣.. Roast kr rhe hai DSA Best bolkr course bechne walo ko

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

      Sahi ha 😂😂😂😂😂

    • @AnisKhan-pq1iq
      @AnisKhan-pq1iq หลายเดือนก่อน +1

      Tab Roast kar raha thaa ab khud b bach raha hai😂😂😂😂😂

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

      ​@@AnisKhan-pq1iq😅😅😅

  • @CopyCoderX
    @CopyCoderX ปีที่แล้ว +44

    02:52 for loop
    8:40 if condition inside for loop
    10:50 for loop inside for loop
    15:57 array inside for loop
    18:40 keyword in loop (break and continue)

  • @ujjwaldhiman7129
    @ujjwaldhiman7129 ปีที่แล้ว +15

    Only channel whose notifications makes my day. Thank you sir for these wonderful videos on JS🥰🥰🥰.

  • @believeyou8530
    @believeyou8530 ปีที่แล้ว +17

    I was having difficulty understanding the concept of loop, so I watched many series. But finally, this video made things crystal clear for me to understand.

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

    Amazing sir love you. Mai sir linkedin pr post bhi kr deta hu video dekhne k baad ❤🙏 aap mere jindgi badlane ka kaam kr rahe H. To mai kuchh to aapke liye kr skta hu. Hn sir 🙏 aur काजू कतली तो aapko jarur khilaunga jaise hi job lagti H sir. Satyam Pandey love from Uttar pradesh❤🙏 आपको ढेर सारा प्यार❤

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

    Bhaiya, you didn't explained the behaviour of a nested loop with break statement at different stages of loop,why is that......

  • @AlokHotta
    @AlokHotta 6 วันที่ผ่านมา +1

    Press ctrl+F2 to change similar words at a time in vs code .

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

    one of the best video related to for loops
    I share this channel " Chai aur code " with my friends and all of them are very happy for Hitesh Bhaiaa's Quality of content.
    I have no words to thank you I just Simply say This is Life Changing.

  • @crickbreez_
    @crickbreez_ 26 วันที่ผ่านมา +2

    Loved it ❤

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

    finally i understand concept of loops ; )

  • @shyamsunder5688
    @shyamsunder5688 13 วันที่ผ่านมา +1

    02:52 for loop
    8:40 if
    10:51 inside
    15:57array inside

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

    Now I feel more confident in my coding skills, knowing how to break out of loops when needed or skip iterations with continue. Thanks for sharing your expertise! Can't wait for your next tutorial. 🙌 #JavaScriptMastery 💪🚀

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

    21:02 - if you know u know 😅😂

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

    13:21 INFINITE LOOP CHAL GYA THA BY MISTAKE 🤣🤣🤣🤣🤣
    for (let i = 0; i

  • @abhishekgosavi3391
    @abhishekgosavi3391 19 วันที่ผ่านมา

    for loop
    Loop 1 )
    for(let index = 0 ; index < 10 ; index++){
    const element = index ;
    console.log(element);
    }
    Loop 2)
    let index ;
    let element;
    for( index = 0 ; index < 10 ; index++){
    element = index ;
    console.log(element);
    }
    Loop 3) Printing loop from outside
    for(let i = 0 ; i

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

    phele msg print hoga phir 5 print hoga

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

    find in array search with break
    let myArray = ["Navi", "Rahul", "Mr Singh", "Ravi"];
    for (let i = 0; i < myArray.length; i++) {
    if (myArray[i] === "Ravi") {
    console.log("Ravi detected. Loop breaking.");
    break;
    }
    console.log(myArray[i]);
    }

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

    Let a = [5,6,8,9,9]
    Const n = 5
    Let object={}
    For ( let i =0;i

  • @sumantabhattacharya9694
    @sumantabhattacharya9694 7 หลายเดือนก่อน +2

    Sir apke yeh valr series best hai

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

    No anyone have videos on TH-cam
    Your classes is depth
    and full practical

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

    for (let i = 1, i

  • @Thankyou-od9qs
    @Thankyou-od9qs 7 หลายเดือนก่อน +2

    Finally,I am comfortable in coding 😅

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

    10:00
    for(let i=1; i

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

    Thanks sir for providing me this Amazing Content

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

    00:02 Discussing upcoming open source projects and future plans.
    01:41 Understanding the concept of iterations instead of loops is vital for programming.
    05:07 Using hardcoded value if condition not met
    06:50 Understanding the usage of 'for' loop with break and continue in JavaScript
    10:32 Using for loops in JavaScript for iterating and printing values.
    12:35 Understanding the execution of inner and outer loops in JavaScript
    16:31 Understanding for loop and index values in JavaScript
    18:16 Importance of changing conditions in loops
    21:30 Using break and continue in JavaScript loops
    23:01 The use of 'continue' and 'break' in JavaScript loops

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

    13.20 type mistake
    outerloop -> inner loop likh diya

  • @MuhammadWaqas-eb1uu
    @MuhammadWaqas-eb1uu 5 หลายเดือนก่อน

    Sir Ya Dunya bi 5 ka Sadga Kha Rhi..ha Agr Koe Muslim comment ma tu Usay Shi pta chlay ga..
    5 ka Mtlab kia ha..
    PanjtanPak

  • @Ck_Ak_i43
    @Ck_Ak_i43 20 วันที่ผ่านมา

    comment me meri taraf se ek shayri .. sir aapke liye..
    "Tujhe paye bina naa jane kitna bhatka hu...
    gali gali se thokar kha.. tujh tak pahucha hu...
    Ummid nhi thi .... ki smjhunga kvi mai ye paheli..
    khuda jane kaise ban gyi teri chay meri saheli....
    dua hai bs aapki muskurahat yu hi bikharti jaye....
    coding koi v ho ...bas ek chay ki pyali me simat ti jaye.."
    Hanji.... shyari krne ni aati mgr emotions bahkr nikl gya tuti futi bhasa ke liye maafi chahta hu...
    thanks a lot sir for this series ..

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

    editor sahab please bg acha lagayiye ... hypnotize ho jata agr thodi derr or dekhta black bg 😅 at the end @Hitesh_bhai is the only one person jinka js ke uper hindi me sbse acha palylist he...!

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

    best series in the world #chai_aur_code

  • @nirmallyakoner6005
    @nirmallyakoner6005 ปีที่แล้ว +13

    I am watching this series fron 12th august 2023 and in just 4 days i am feeling so confident in it. You are magical sir.

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

      aaj hai 27-10-2023 aaj kaisa lag rha hai

    • @AdityaSingh-in6ce
      @AdityaSingh-in6ce 11 หลายเดือนก่อน

      master hogya ab tk meri dusri id hai@@uselesstechofficial

    • @codeX-th7cq
      @codeX-th7cq 7 หลายเดือนก่อน

      lol@@uselesstechofficial

    • @zezoshoft-gc6jt
      @zezoshoft-gc6jt 2 หลายเดือนก่อน

      15 august bro coming soon

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

    Sir . Mere sath ek problem he. Samajhme to 101% araha he. But purana bhul jata hun . Is ka solution kiya he. Please help me

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

    Very very thank you == बहुत बहुत धन्यवाद

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

    02:52 for loop
    8:40 if condition inside for loop
    10:50 for loop inside for loop
    15:57 array inside for loop
    18:40 keyword in loop (break and continue)

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

    VS Coe terminal is not showing output in Javascript

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

    Sir you are our superhero, in superhero array, please add your name also Sir.
    Awesome content. Loved it.!!

  • @FarhanHaider-oc2hn
    @FarhanHaider-oc2hn หลายเดือนก่อน

    Sir outer loop 11 dafa aur inner loop bi 11 dafa chaly ga kyu ka loop ke value 0 se start ho rhy ha na ka 1 se.

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

    finally after wait for a week sir arrived with a video 💥

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

    i like your video's

  • @Learning-wm6xu
    @Learning-wm6xu 5 หลายเดือนก่อน

    Loops have always been scary for me but after watching your video i feel like i can write code for loop correctly

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

    sir aap ye ${}ke andar wala system vs code per run nhi kar rha wo yahi ${}print kar de raha he iska koi solution

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

    you are magical for me because i start watching videos and then enjoy all videos😍🥰

  • @shailenderjaiswal1685
    @shailenderjaiswal1685 ปีที่แล้ว +7

    Sir apki puri ye wali series bahot achi hai apki happy look se aur mjaaa aata hai sikhne me

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

    Thank you so much sir.

  • @Arnav404
    @Arnav404 ปีที่แล้ว +10

    Sir, provide some practice questions or exercises after the videos. That will give us confidence in the JS

    • @indian-shorts9215
      @indian-shorts9215 ปีที่แล้ว

      w3resourse pe jaake krlo bhai questions

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

      oo bhai sir ji koi vella admi nhi hain ye sb additional cheeze free ka mt demand karo internet ka use karo

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

      Muslmanoon ka Allah and hinduaoon ka bagwan app ko lambi umar dy love you sir❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤

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

      @@zulfiqarAlig bhai ye kadwa satya tu v janta hai aur puri duniya v ki musalmano ka allah sirf musalman k liye hote hain kaafir hain uske samne

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

      @@navinkumarsahu1159 nhn nhn Allah ny hamen insan banaya tha aur pher hm insanooon ny hee ek doosrey ko kafir bana diya. Iss men Allah ka kiya dosh. Pher bhee Allah hamen aur tumhen aur sabh ko insan banney ki taufeeq ata kry.

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

    From the where to solve this all loops practice example for more to strong the concept. Thank you

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

    Element ki value jab 5 ke barabar hogi then if statement execute hoga

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

    "break" be like packup bhai packup, "continue" be like sehleng thora 😀

  • @RahulSharma-wz6yv
    @RahulSharma-wz6yv 7 หลายเดือนก่อน

    first number print hoga till 5, then 5 is best number, then number continues to 10.

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

    20:30 sir: "aap ne to pakadliya hoga pakka".
    (me smiling😊) who already know

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

    make one more PODCAST On TRS Hindi/English

  • @Adityasm27
    @Adityasm27 7 หลายเดือนก่อน +2

    maza aagya sir, 4 saal baad dekha dubara break and continue ka use

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

    in Windows select any dublicate element and use ( ctrl + shift + L) to use multicursor for dublicate elements.

    • @tanmaypaul8528
      @tanmaypaul8528 8 หลายเดือนก่อน +2

      thanks

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

      thanks a lot bro, I was trying to find it.

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

    speechless series

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

    bhaiya maza a raha h comment to hm krte h , hme master bana do jaldi s. bhaiya job k lie m bahut preshan hu.

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

    Comment tho har Video main kar tha hu ❤❤🎉 shikne main maja ara ha he sir 🇧🇩🇧🇩

  • @3nriched500
    @3nriched500 4 หลายเดือนก่อน +1

    message print ho ga

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

    baaki ki videos kal subah dekhunga good night Hitesh bhai I love you

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

    you are magical for me because i start watching videos and then enjoy all videos and my interest in programming

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

    Awesome video sir!

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

    Nice Explanation ! Perfect ! Thank you

  • @ahmadrasheed2598
    @ahmadrasheed2598 26 วันที่ผ่านมา +1

    TOP NOTCH Course

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

    Best series on JS SIR
    CSS PE BHI SERIES LE AAIYE SIR ❤

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

    Which extension do you use for the basic suggestion for loop?

  • @Muhammadfaisal-kd9kx
    @Muhammadfaisal-kd9kx ปีที่แล้ว +1

    best course sir thankyou very much sir

  • @namannema3349
    @namannema3349 9 หลายเดือนก่อน +1

    sir maza aa rha hai maine kahi aur se bhi yt pe js padha tha but apkay videos me aur maza aa rha hai

  • @arpitarpit-er7oo
    @arpitarpit-er7oo 5 หลายเดือนก่อน

    Inteha Ho gayi agale video ki aaina kuchh khabar agale video ki

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

    parctice sets:- for loop
    Write a JS code to print numbers from 1 to 10.
    Write a JS code to print a 2D array.
    Write a JS code to print Even numbers in given array.
    Write a JS code to delete all occurrence of element in given array.
    Write a JS code to find the power of a number using for loop.

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

      i shall try IN SHA ALLAH

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

      thanks

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

      bss just puch rha hu gussa mt hona ye IN Sha Allah her line ke end me likhna jaruri hota hai kya ?
      @@shaheerniazi1742

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

    the break statement is in if else what is its scope and how it stops loop which is out of scope of if condition

  • @STORYHUTFORKIDS
    @STORYHUTFORKIDS 7 วันที่ผ่านมา

    even i have no interest in coding but when i start learnt from you it helps me a lot . My friend suggest me your playlist . Thanks for making youtube channel sir

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

    Abb confirm ho gia Sir Javascript prhaana harr kissi k bss ki baat nhh

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

    break;-> terminate the loop execution
    continue->start the next iteration
    // Original for loop, counting from 0 to 9 with a message when i is 5
    // for(let i=0;i

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

    Hitesh sir is the best teacher like DSA.....on youtube.😀

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

    ctrl + D to get all duplicate elements (for windows)

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

    Thanks Sir!

  • @Alok.28
    @Alok.28 5 หลายเดือนก่อน +2

    Bahut hi achha course hai Hindi me. dhanyabaad Sir ji

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

    thank you sir for this amazing series love from pakistan

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

    In both places you have written 'inner value' .

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

    take love from bangladesh
    hitesh sir
    #chaiAurCode

  • @MdZahid-mg4uj
    @MdZahid-mg4uj หลายเดือนก่อน

    I don't usually comment on videos but i gotta say - The one thing i like most about your videos...this not hindi or your twisted way of teaching but... your attitude...that keeps our mind and hearts playful...i guess and thank you so much for that....😊😊

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

    watching on sunday morning, after having tea🍵

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

    i use mouse

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

    Pehele massage print hoga .... Then number

  • @ManojSingh-b1j3i
    @ManojSingh-b1j3i 2 หลายเดือนก่อน

    Thank you: sir , ❣ ye java script sachh main bhut hi expensive hai ,sunne main ek alg hee maja aata hai aapko or seekhne main to kya hee kahna , ☺🌿
    Main dawe ke sath kah sakta Hoon ki isse ise bahtar java script ka course hoga hi nhi youtube per or syd hee koi bana payega,
    Itaen calm or bikul 1 - 1 topic bhut hee gahre samjh ke sath , Thank you sir ,
    ❣ .

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

    never understood difference b/w break and continue now u explained it perfectly 👍

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

    html end ho gya jaisa aap ne bataya hai ab css bhi start karo

  • @AnuragDobariya-i3t
    @AnuragDobariya-i3t ปีที่แล้ว

    Dsa best Hai sirf😂😭sarcasm on peak point😆👌

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

    5 is best number print hogi pehlay

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

    18:30 hitesh be like:- bohot paisa hai mere pass

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

    for(var i=0; i

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

      it is a error if you want to add /= in i use inside loop naa

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

    Sir agar hum let jaga var ka use kri to same output hoga

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

    "Chai aur Code, you've unlocked the secrets of JavaScript in the most brilliant way. Kudos!"

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

    I am a beginner from Arts background. I know nothing about coding. You explanation is much better. please maintain the style.

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

    first print if block and then element oon
    5 itration

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

    I was having difficulty understanding the concept of loop, so I watched many series. But finally, this video made things crystal clear for me to understand.

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

    I have purchased 2-3 JS courses in English I did not understand this much, thank you sir,
    Really appreciate your efforts.

  • @manjaykumar-jb7yp
    @manjaykumar-jb7yp 6 หลายเดือนก่อน

    I am getting more confident in JavaScript after watching this series. Thanks a lot sir for helping the community through such a great study material...

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

    this is the best playlist for js in youtube

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

    9:40 phle message print hoga fir 5 print hoga

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

    thanks ji

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

      Welcome☺️