#26 While/do while loop | JavaScript Full Tutorial

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024
  • 🙂 SUBSCRIBE - hit the bell 🔔 and choose all: goo.gl/nYLZvz
    In this lesson let's learn all about the while/do while loops. The while loops works in a similar way to the for loop in that it loops over a block of code. the difference is the initialiser variable is written before and outside of the while loop syntax, and the final expression is included inside the while loop curly braces after the code to be run. Only the condition is included inside the parentheses of a while loop. We'll also learn about the do while loop, the do while loop will run the code at least once before coming on to evaluating the condition.
    ------------------
    👍 HTML FULL TUTORIAL: shorturl.at/fiCMV
    👍 CSS FULL TUTORIAL: shorturl.at/clGSZ
    ------------------
    FACEBOOK: / devdreamercode
    TWITTER: / devdreamercode
    SUBSCRIBE and hit the BELL NOTIFICATION 🔔: goo.gl/nYLZvz
    ------------------
    Learn with Dev Dreamer! Step by step, easy to understand tutorials :-)

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

  • @aravis_
    @aravis_ Год назад +5

    finally somebody who explains this in English lol. Glad I've found your channel, thanks for explaining it so thoroughly!

  • @AJ-MM02
    @AJ-MM02 Год назад +3

    The way you explain the syntax and process flow is very clear. Thank you!

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

    So helpful 🙏❤️

  • @frankmutethia5289
    @frankmutethia5289 Год назад +1

    As always good work.

  • @emojibenji
    @emojibenji Год назад +1

    Maybe I'm missing something, but I don't recall you properly explaining when you go from using

    • @ryuzaki_ray
      @ryuzaki_ray 11 месяцев назад +1

      x+=y is the same as x=x+y
      It is the shortcut version.

  • @webb-developer
    @webb-developer 7 месяцев назад

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

    clear tuts thanks you ..

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

      Glad you like them! Thank you 🙂👍

  • @ashton982
    @ashton982 4 месяца назад

    why does the console.log(i) come before the i++ and why does it work. would it work the other way. i can test the latter myself. your videos are of elite quality btw. i tested it. it logged 1 through 11 but idk why, im assuming it added 1 to 0 first then proceeded with logging 1 through 10 and then the final console.log(i) gave the final log of 11. input would be great.

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

    Thank you so much!

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

      Hey LDT! Thank you for watching and for all your awesome comments! 😃👍👍

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

    Thnaks !

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

    Hi Dev dreamer please upload full we development project as you done in a css project plzzz Dev dreamer upload video

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

    Majority of beginners want to learn tutorial which doesn't run at a very fast speed because javascript is hard to understand for beginners. The tutor may know very well and can show off, but in the end, it's the viewer who decided to choose whose tutor is the best. Slowing down to 0.75 X is not as practicable as you might think.

    • @DevDreamer
      @DevDreamer  Год назад +6

      Hi Jimmy, this isn’t about which tutor is best or showing off. It’s about providing high quality education to those that need it. I’m not sure what you mean by “not as practicable as you might think” but many people use the speed controls and find them very helpful. Hope you find the help you’re looking for, whether here or elsewhere 🙂👍

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

      As a beginner I prefer x1.1 to x1.3 speed. It helps me to be more attentive and be more focus. normal or slow pace gives my mind a lot of time to wander to different thoughts outside the topic.

  • @praveshmaharaj4387
    @praveshmaharaj4387 Год назад +1

    please someone explain why he put $ . i never come across this as yet.

    • @DevDreamer
      @DevDreamer  Год назад +1

      Hey Pravesh, the ${ } is called a Template Literal, a modern feature of JavaScript. I created a full tutorial on it here - ruclips.net/video/52OJhTbCtoA/видео.html

    • @praveshmaharaj4387
      @praveshmaharaj4387 Год назад +1

      @@DevDreamer thank you very much