While and do while loop in Javascript | chai aur

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

КОМЕНТАРІ • 232

  • @zahid_9217
    @zahid_9217 11 місяців тому +63

    I just wanted to contribute a little bit of technical insight to the discussion. In the world of programming, we often refer to loops using two different control structures. The 'for' and 'while' loops are what we call 'entry control loops' because they check the condition before entering the loop. On the other hand, 'do-while' loops are known as 'exit control loops' since they ensure that the loop body is executed at least once before checking the condition.
    Thank you so much sir.
    lot's of love from Kashmir❤

  • @chandanparida18
    @chandanparida18 Рік тому +53

    Kash aap humare clg main teaching kiye hote !
    The best js series ever.
    Thank you sir for this course.
    Love you 3000

    • @chaiaurcode
      @chaiaurcode  Рік тому +70

      Ho skta h bht jld kisi college me b pdhane lag jau 😁

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

      par Sirji college wale Afford bhi karne chaheye na @@chaiaurcode

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

      Government Collage 😅@@chaiaurcode

    • @navinchaudhary915
      @navinchaudhary915 8 місяців тому +1

      😅🤣@@chaiaurcode

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

      Amazing explanation 😅😅

  • @Hafijur0211
    @Hafijur0211 8 місяців тому +7

    🎯 Key Takeaways for quick navigation:
    00:00 🔄 *Overview of Loops in JavaScript*
    - Loops in programming offer various versions and choices, creating flexibility.
    - Understanding loops is crucial, as there are multiple variations and syntax changes.
    - Programming provides numerous ways to achieve the same outcome; loops offer choices.
    00:43 🔄 *Importance of While Loop in JavaScript*
    - While loop is highlighted as the most important and commonly used loop in JavaScript.
    - Other loops like for and do-while exist, each with slight syntax differences.
    - Syntax differences between loops are manageable, contributing to language versatility.
    01:09 🔄 *Introduction to While Loop Syntax*
    - The while loop syntax is introduced and explained in comparison to other loops.
    - Emphasizes the simplicity and significance of the while loop in programming.
    - Acknowledges the syntax variations but highlights the foundational similarities.
    01:53 🔄 *Understanding While Loop Execution*
    - Demonstrates the syntax and structure of the while loop, including conditions.
    - Initialization, condition check, and incrementation are key components in while loop structure.
    - Encourages understanding the structure and syntax for effective loop utilization.
    02:34 🔄 *Implementation of While Loop in JavaScript*
    - Practical demonstration of a while loop in JavaScript, printing values.
    - Highlights the importance of initialization, condition, and incrementation in the loop.
    - Provides a clear example of a basic loop in action.
    02:47 📝 *Loop Initialization and Index Modification*
    - Importance of correct spelling and variable injection in loop.
    - Emphasizes the need for conditions preventing infinite loops.
    - Highlights the flexibility of using either increment or decrement in loops.
    03:15 🔄 *Loop Execution and Value Printing*
    - Demonstrates the loop execution with an example.
    - Prints values within the loop to observe the iteration.
    - Shows the significance of conditions in controlling the loop.
    04:00 🧮 *Looping through Arrays*
    - Introduces looping through arrays with a practical example.
    - Discusses the importance of incrementing the index variable.
    - Emphasizes simplicity and readability in coding practices.
    05:09 💡 *Smart Coding Practices*
    - Advocates for code readability and simplicity.
    - Encourages short, understandable lines of code.
    - Stresses the priority of code readability for effective programming.
    06:06 🔄 *While and Do-While Loops Overview:*
    - Discusses various loops in programming.
    - Emphasizes the importance of correct output or result in programming.
    - Introduces while, do-while, for, and nested loops.
    06:34 🔄 *Wild Loop Execution:*
    - Demonstrates the wild loop execution and its impact.
    - Explains the nested loop concept.
    - Highlights the condition checking in nested loops.
    07:14 🔄 *Specialization in Nested Loops:*
    - Explores the concept of specialized conditions in nested loops.
    - Examines the order of condition checking.
    - Demonstrates a practical example with nested loops.
    07:45 🔄 *Score Calculation Loop:*
    - Implements a loop for calculating a score.
    - Discusses continuous run and changing conditions.
    - Emphasizes the importance of changing conditions in loops.
    08:22 🔄 *Handling Score Change:*
    - Explains how conditions affect the score change in a loop.
    - Demonstrates how loop conditions impact the output.
    - Highlights scenarios where conditions are checked later in the loop.
    08:50 🔄 *Handling Exceptions in Loops:*
    - Discusses handling exceptions in regular and flow control loops.
    - Mentions the relevance of exceptions in different scenarios.
    - Highlights the commonality of exceptions in various programming situations.
    09:30 🔍 *Syntax and Specialized Loops:*
    - Introduces the commonality of using loops to fetch values from a database.
    - Highlights the consistency of values, often in error format, when retrieved.
    - Mentions the availability of specialized loops and direct properties for error handling in loops.
    09:44 🔍 *Advanced Loop Structures:*
    - Discusses the syntax and structure of specialized loops.
    - Mentions upcoming videos that will delve into available loop options and error handling.
    - Concludes the basic loop structure discussion and highlights the break and continue statements.
    09:59 🔍 *Future Content and Conclusion:*
    - Mentions plans for creating a more extensive video with a duration of five hours.
    - Emphasizes the direct understanding of the content covered in the video.
    - Encourages viewers to reach out on Discord for any questions or concerns.
    Made with HARPA AI

  • @bhagyashreenanda7049
    @bhagyashreenanda7049 11 місяців тому +3

    Loop Concept ko kisi ne itna ache se nahi padhai tha...Thanj you sir All concepts are very clear

  • @lazy-hero.
    @lazy-hero. Місяць тому +2

    Amazing teaching skills.. thank you ❤

  • @hitendrasingh01
    @hitendrasingh01 10 місяців тому +2

    for and while are entry-controlled loops.
    do-while is an exit-controlled loop.
    for (initialization; condition; inc/dec) {
    // code to be executed
    }
    while (condition) {
    // code to be executed
    }
    do {
    // code to be executed
    } while (condition);
    Each type of loop has its use cases, and the choice depends on the specific requirements of your code

  • @Abdullah-rx4bm
    @Abdullah-rx4bm Рік тому +57

    hitesh sir is better tutor than code with harry

    • @sapnakumari2534
      @sapnakumari2534 10 місяців тому +7

      Bcoz , Hitesh sir have experienced, and spread the knowledge.....but code with Harry use his channel for the content trending 😅

    • @dcsalim4384
      @dcsalim4384 10 місяців тому +18

      It's my humble request to you 🙏, please don't do this type of comparison they both are legend from their own place 😊

    • @helloworld2054
      @helloworld2054 8 місяців тому +12

      Only first year noobs follow codewithharry, no hate to him but he skips a lot of things

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

      ​@@helloworld2054that's what I want to say.

    • @DeepThakur1229
      @DeepThakur1229 5 місяців тому +2

      And thapa technical javascript playlist

  • @AijazAli-z9i
    @AijazAli-z9i Рік тому +2

    I was countinously trying to understand the basics concepts of js and i gone through many other channels but this is the best ever series i have seen. More power to you champ love from Sindh 🌹

  • @Vaibhav-y6b
    @Vaibhav-y6b 4 місяці тому +1

    one of the best premium channel for learning...

  • @RaviKumar-mx9kx
    @RaviKumar-mx9kx 10 місяців тому +2

    Majak se hatke maine sach me pehli baar aisi series bina skip kiye follow kr rha hu just bcoz ki padhata har koi h but aap sabse alag ho
    Thank you sir❤

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

    🎯 Key points for quick navigation:
    Loops in programming have various versions and syntax changes, but the basic concept remains the same.
    While loops in JavaScript are easy to use, allowing for condition checks and execution based on the condition.
    Incrementing or decrementing variables within the while loop helps avoid infinite loops.
    It is important to understand the syntax changes and syntax variations when working with while loops.
    Incrementing or decrementing inside a loop is not necessary, focus on looping and printing values.
    Make sure the code is easily understandable for better readability and maintainability.
    Understand the importance of conditions and how loops specialize in checking conditions.
    Use loops wisely, and always focus on the expected output while incrementing values.
    Consider different scenarios, such as nested loops, and understand when to change values within a loop.
    Made with HARPA AI

  • @JitendraSingh-vp5dl
    @JitendraSingh-vp5dl 10 місяців тому +2

    it's a amazing series hitesh sir

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

    Sir apke hindi lectures english se 10x jyada achhe hai kyu ki hindi lectures me actual understanding ke sath sath feel bhi hota h

  • @ayush.tiwarios2105
    @ayush.tiwarios2105 Місяць тому

    00:03 Understanding the different types of loops in JavaScript.
    01:09 Do while loop in JavaScript
    02:17 Using while and do while loops in JavaScript
    03:31 Understanding the while and do-while loop in JavaScript
    05:00 Understanding loops and index increment in JavaScript
    06:21 Nested do while loop in Javascript
    07:55 The do-while loop in JavaScript can lead to unexpected behavior with certain conditions.
    09:12 Specialized loops and common syntax for applying loops in JavaScript

  • @sharjeelcode3290
    @sharjeelcode3290 10 місяців тому +1

    bestest javascript series ever thanku soo much hitesh sir

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

    speechless series

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

    you are gem
    you are superb
    explanation king

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

    Sir ap ki jaisa content purri UA-cam University m nhi deta h koi ❤❤❤

  • @Hammad-wp8dm
    @Hammad-wp8dm 2 місяці тому +1

    Woo kehta ha nah sir g 'Maza aya' 😁😁😁😁

  • @aniketjha5946
    @aniketjha5946 Рік тому +7

    agar me javascript ko pahle janta how good it is toh me c/c++ me offline center jake mere 6-7 months bacha leta or ek bar to police chalan bhi kat gaya tha 😂

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

    Completed ✅✅
    Thanks a lot sir for your contribution. Please don't stop making such beautiful content. There are students who really like and appreciate your efforts.

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

    wow two back to back videos love you sir ❤

  • @KajalKumari-p4m
    @KajalKumari-p4m 2 місяці тому

    Best Js tutorial on youtube

  • @tiktok-pk-match
    @tiktok-pk-match 10 місяців тому +1

    Great Work, Thanks

  • @spiritualcontent763
    @spiritualcontent763 9 місяців тому

    As an experienced programmer, I say in while working in companies now a days, normal loops like for , while , do used veryless. So if you are a beginner, than you can use but once you get familalize with map, filter , reduce, find, some, every, forEach then you wouldn't touch those but still imp that how basic loops work because they new functions also do same thing on back side.

  • @onetwo1457
    @onetwo1457 9 місяців тому

    sir aap ka content and teaching style bahut acha hai, bahut premium content hai isse channel pe

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

    Unique way to explain

  • @dsouzaedson
    @dsouzaedson 10 місяців тому +1

    excited to learn more!

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

    love the series sir.

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

    Loved your way of explanation. Its addictive. Thanks Sir

  • @universalbeats.....8242
    @universalbeats.....8242 5 місяців тому

    thanks for the best series

  • @user-mo6nk1xp1p
    @user-mo6nk1xp1p 4 місяці тому

    9:09 tru..😂😂😂, btw i have already subscribed .

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

    Thank for this playlist still continue and keep learning new concepts from this playist😇.

  • @nabeelkhan-dp2fc
    @nabeelkhan-dp2fc Рік тому +1

    sir waqai maza agya ap se seekh kr... pori mern k tutorial bana dein please....

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

    haji😊 kya bhat ha sir ji

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

    "Every video in the Chai aur Code playlist is a masterpiece. Grateful for this learning journey!"

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

    Thanks for putting such a top notch content !!

  • @dEviL_bIsWaJiT
    @dEviL_bIsWaJiT 9 місяців тому +1

    Love you 3000 Sir ❤

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

    Clear and done !

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

    sir you are the best teacher

  • @VishalVerma-cc7xe
    @VishalVerma-cc7xe 5 місяців тому

    Awesome Content SIr...Very Easy Way of Explanation.....❤❤

  • @Instrumentation010
    @Instrumentation010 9 місяців тому

    masterpiece. thank you for amazing content

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

    nice video

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

    All hail to the Chaudhary saab...❤

  • @ecoventure01
    @ecoventure01 9 місяців тому +1

    Your tutorial is wow 😧😧

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

    best explanation and to the point video

  • @SoumiMaity-ux4gv
    @SoumiMaity-ux4gv 10 місяців тому +1

    Thank you 🤍

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

    const teacher = "hitesh sir"
    let year = 1
    while(year

  • @PriyankaYadav-xl6qo
    @PriyankaYadav-xl6qo Рік тому +1

    Thank you so much ❤ your explanation is next level

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

    awesome sir you are the best

  • @Alok.28
    @Alok.28 5 місяців тому

    Totally Understood. Thanks Sir ji

  • @vilasgupta3696
    @vilasgupta3696 9 місяців тому

    best series for java script

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

    thanks for teaching sir

  • @VikashSingh-hc6zo
    @VikashSingh-hc6zo 10 місяців тому

    wow fantastic as always maja a jata hai apse padne m sir
    thanks a lot sir pdane k liye or haan mai to 4k m padta hu
    do-while be like " life me har kaaam mai ek baar jroor karta hu bina uska anjaam jane "
    thanks a lot sir

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

    Iss! Mei aur pehle keu nehi paiya is series ko. Take love ❤ from Bangladesh

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

    i will DO attend the lecture while the series end 😄

  • @EXPERIMENTSHOW.
    @EXPERIMENTSHOW. Рік тому +1

    thanx bro
    you make it very easy.

  • @Ease_At_Code_-vn6tp
    @Ease_At_Code_-vn6tp 5 місяців тому

    great video sir

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

    Amazing ....😍😍🙌

  • @aryanpatelyt7562
    @aryanpatelyt7562 5 днів тому

    Thank you very much !!

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

    i love this Playlist

  • @CodAr-man
    @CodAr-man 7 місяців тому

    best javascript tutorials on youtube

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

    hanji sir kese ho ek no padate ho sir

  • @Animesh.001
    @Animesh.001 Рік тому +1

    Very informative video.. thank u sir♥️

  • @lanarhodes9968
    @lanarhodes9968 9 місяців тому

    loved your series

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

    first time feeling that I'm comfortable in for loop, while loop and do while loop thank you sir ...

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

    wow exception smjh aya
    subs kam
    quality jyada
    mst tha sir
    ( majak se hatke sir boht hi suljha hua content hai ) thank you sir

  • @SyedFazalRahman-g7s
    @SyedFazalRahman-g7s 6 місяців тому

    Amazing explanation.
    Thanks a lot

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

    Awesome!!

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

    Best playlist i ever seen

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

    The best js series ever.

  • @AjitSingh-sy1yt
    @AjitSingh-sy1yt 7 місяців тому

    you are the best sir

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

    thanks for this kind of videos....keep posting

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

    love u sir from bangladesh...........

  • @alishaprasad4989
    @alishaprasad4989 26 днів тому

    best js tutorial

  • @GauravSingh-bl3wy
    @GauravSingh-bl3wy 8 місяців тому

    easy to understand😍

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

    Best js series ❤❤❤

    • @chaiaurcode
      @chaiaurcode  Рік тому +4

      Thanks

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

      ​@@chaiaurcode ❤❤ bas aap series ko continue rakhiye aapka samjhane ka style best hai sir...

  • @deepakPatil-gu8tb
    @deepakPatil-gu8tb 3 місяці тому

    Nice 👍👍👍👍

  • @ZainShah-x8e
    @ZainShah-x8e 11 місяців тому

    best online course

  • @anjalisinghai3948
    @anjalisinghai3948 9 місяців тому

    love the way of teaching 🥰

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

    WHAT GREAT SERIES

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

    when i have hitesh sir than everything Is possible

  • @MonikaKumari-er4de
    @MonikaKumari-er4de 5 місяців тому

    Thank you sir❤️

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

    28 VIDEO COMPLETE 🎉❤

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

    Thank You Sir

  • @poojasaid7761
    @poojasaid7761 9 місяців тому

    Thank You 👍

  • @user-ct4sp3nx2s
    @user-ct4sp3nx2s 10 місяців тому

    Thankyou sir.

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

    Best Teacher 🎉🎉🎉

  • @hiphop861
    @hiphop861 9 місяців тому

    Thank you so much

  • @raosadaqat7302
    @raosadaqat7302 17 днів тому

    Sir good

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

    Thank you so much sir 😊
    Sir node.js ki bhi playlist banaiye please

  • @pranjalgogoigaming-1209
    @pranjalgogoigaming-1209 9 місяців тому

    NICE VIDEO

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

    Sir Node Js pr viedo bnao

  • @razahandle02
    @razahandle02 8 днів тому

    udhar vala example was related 😅😅😅

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

    great

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

    thank you☺

  • @kripashanker7201
    @kripashanker7201 23 дні тому

    thanks sir ji

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

    Understood

  • @KamleshSahu-qy2fw
    @KamleshSahu-qy2fw Рік тому

    Sir ji subscribers b badh jaynge ap to bs ese hi video banate rahiyo baki ...
    🌊🌊🌊🌊🌊🌊🌊
    वैसे भी आपके चैनल पर बाढ़ जल्द आने वाली है। ❤❤❤❤
    React k videos b wait kr rha hu iske bad ...👀

  • @bakhatmuneer-h2l
    @bakhatmuneer-h2l 6 місяців тому

    #bestJScriptSeries