For, While & Do while Loops in JavaScript | JavaScript Tutorial In Hindi #9

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • I have an updated version of JavaScript course going on. This Ultimate JavaScript course is being supplied with handwritten notes and I highly recommend the latest course over this.
    Must watch the updated course here: • JavaScript Tutorials f...
    ►JavaScript Tutorial For Beginners In Hindi Playlist - • JavaScript Tutorials I...
    ►Source Code + Other Material - codewithharry....
    This video is a part of my JavaScript In Hindi Course. JavaScript is a high-level, interpreted programming language that conforms to the ECMAScript specification. JavaScript has dynamic typing, prototype-based object-orientation, and first-class functions.
    Alongside HTML and CSS, JavaScript is one of the best and most demanded technologies of the World Wide Web. JavaScript enables interactive web pages and is a crucial part of web applications. The vast majority of sites use it, and major web browsers have a dedicated JavaScript engine in order to execute it.
    As a multi-paradigm language, it supports event-driven, functional, and imperative programming fashion. It has APIs for dealing with text, arrays, regular expressions, and the DOM, but the language itself does not include any I/O, such as networking, storage, or graphics facilities. It relies upon the host machine environment in which it is embedded to provide these features.
    ►Click here to subscribe - / @codewithharry
    Best Hindi Videos For Learning Programming:
    ►Learn Python In One Video - • Learn Python In Hindi ...
    ►Learn JavaScript in One Video - • JavaScript Tutorial
    ►Learn PHP In One Video - • Learn Php In One Video...
    ►Machine Learning Using Python - • Machine Learning Tutor...
    ►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
    ►Advanced Python Tutorials - • Intermediate/Advanced ...
    ►Object Oriented Programming In Python - • Object Oriented Progra...
    ►Python Data Science and Big Data Tutorials - • Python Data Science an...
    Follow Me On Social Media
    ►Website (created using Flask) - www.codewithha...
    ►Facebook - / codewithharry
    ►Instagram - / codewithharry
    ►Personal Facebook A/c - / geekyharis
    Twitter - / haris_is_here

Komentáře • 157

  • @CodeWithHarry
    @CodeWithHarry  Před 2 lety +4

    I have an updated version of JavaScript course going on. This Ultimate JavaScript course is being supplied with handwritten notes and I highly recommend the latest course over this.
    Must watch the updated course here: czcams.com/play/PLu0W_9lII9ahR1blWXxgSlL4y9iQBnLpR.html

  • @Krenil.
    @Krenil. Před 3 lety +51

    2:22 for loop
    5:00 between while and for loop
    5:13 while loop
    6:52 do while loop
    9:11 difference between while and do while
    10:51 break statment
    11:38 continue
    12:58 when to use break and continue
    13:41 for each loop
    13:41 How iterate array
    17:16 for in loop
    17:16 how to iterate Object

    • @Chandresh.T
      @Chandresh.T Před 3 lety

      well the whole video is important

    • @anantchandak9574
      @anantchandak9574 Před 3 lety +1

      bhhot achhe

    • @Krenil.
      @Krenil. Před 3 lety +12

      @@Chandresh.T i know it but some students have less time and have to do more work so it can be help full for them.

  • @iamaniketkr
    @iamaniketkr Před 4 lety +14

    Best JavaScript Tutorial On CZcams.
    Thank you Code With Harry 😃♥️

  • @Mayankkumar-ex7vv
    @Mayankkumar-ex7vv Před 4 lety +16

    Your JavaScript tutorial is amazing.
    I love this tutorial.

  • @techie57
    @techie57 Před 2 lety +1

    Thank you harry bhai this is very nice playllist but not for the beginner of programming

  • @mdmatiurrahman7373
    @mdmatiurrahman7373 Před 4 lety +6

    Watching, practising and loving you...

  • @memepinch901
    @memepinch901 Před 3 lety +1

    harry bhai aap best ho .

  • @adarshkhatri993
    @adarshkhatri993 Před 3 lety +2

    East or West HARRY Bhai is the best😀

  • @HariomSingh-ei4fb
    @HariomSingh-ei4fb Před 2 lety +1

    This video's tutorial series is only tutorials it is full course of JavaScript.
    Thanks a lot Harry bhaii♥️😎

  • @thumbboy6418
    @thumbboy6418 Před 3 lety +2

    I did not understand looping over objects. Please make a separate video explaining looping over objects.It's my humble request

  • @rockymental3900
    @rockymental3900 Před 3 lety +1

    U are a good teacher
    I gain a lot of knowledge from u
    Thanks bro

  • @gabbar514
    @gabbar514 Před 3 lety +1

    Most underrated programmer

  • @yashbhatti7531
    @yashbhatti7531 Před 3 lety +2

    Harry bhai for loop ko easily use kar sakte hai (for example)
    let arr = [2,3,44,55];
    for (let i = 0; i < arr.length; i++){
    console.log(arr[i]);
    }
    Output is
    2
    3
    44
    55
    It's good practice or not Harry bhai🙄

  • @AdityaKumar-xd8mj
    @AdityaKumar-xd8mj Před 3 lety +1

    Harry bhaiya aapki videos bohot mast hai maine apne web d ke tour me bohot kuch seekha apki videos se bas ek request hai bhaiya apne videos me time stamps bhi laga dijiye

  • @Heartfelt656
    @Heartfelt656 Před 3 lety +1

    loved your tutorial bhai

  • @salmanmughal930
    @salmanmughal930 Před 3 lety +1

    Sir, your tutorial is very good, it is the best tutorial of javascript, it is very helpful

  • @Krenil.
    @Krenil. Před 3 lety +4

    this tut is really helpful for me. thanks for the video. :) peace ✌️

  • @ajithamin9196
    @ajithamin9196 Před 5 lety +7

    Bro , please add one video per day
    I am learning python from your playlist it is difficult to catch up both python and js.
    Please add 1 js video per day it helps me to understand and interact with you for doubts and ideas.
    And make videos on scripting also....Thank You for TEACHING better than my lecture (they just want my mark nothing else)

  • @beenugupta844
    @beenugupta844 Před 2 lety

    Best JavaScript tutorial

  • @sanoberkhan8300
    @sanoberkhan8300 Před 3 lety +2

    Thanks a lot sir for your amazing tutorial. Really its very helpful for me especially!

  • @preadsy6912
    @preadsy6912 Před 2 lety

    thank you bhai I am really very happy that I see your channel and I am working very hard plus I am also giving my time

  • @bytecodeskool
    @bytecodeskool Před 5 lety +2

    You are best Harry Bhai make videos on core Java and advance java

  • @ajazamin9843
    @ajazamin9843 Před 2 lety

    shortcut write log and enter second option in snippet and its done. no need to write complete console.log() manually

  • @salmanmughal930
    @salmanmughal930 Před 3 lety +12

    Sir, I am having a little difficulty in understanding the template Literals when you use, oh no, but when I use, there is a night. Please sir please guide me a little

    • @ibrahimshaz6198
      @ibrahimshaz6198 Před 3 lety +1

      What?

    • @DoUSuggon
      @DoUSuggon Před 2 lety +2

      short way to understand template literals is that its used for concatinating string and using user defined variables inside the string. suppose you have 1000 string and you have to concatenate it , using traditional ways we have to concatenate like this 'string 1'+'string 2'+.... which is a bit tedious, so using template literals makes this task easy

  • @rajbannasa7662
    @rajbannasa7662 Před 3 lety +1

    thank you so much sir

  • @aviator4372
    @aviator4372 Před 3 lety +2

    Hi !
    Harry bhai , can you make a tutorial video in vue.js and vuex.
    regards!!!

  • @moshimoshi_04
    @moshimoshi_04 Před 2 lety +1

    Thank you 😊

  • @jashanpreet880
    @jashanpreet880 Před 3 lety +1

    very helpful video sir

  • @anshulbadhani
    @anshulbadhani Před 3 lety +5

    Harry Bhai loop chalte chalte mere laptop hang ho gaya 😂
    Edited now I found my mistake I putted = in place of < in for

  • @skyroomgaming411
    @skyroomgaming411 Před 3 lety +1

    Why condition is not satisfied when you do console.log( j + 1) it is also equal to J++ at 6:41

  • @MrAIExplorer
    @MrAIExplorer Před 2 lety

    Tsm Harry bhai you are really best

  • @SyedHaris007
    @SyedHaris007 Před 3 lety +10

    This is Gold man!

  • @nirahhp999
    @nirahhp999 Před 2 lety

    I need some help on node loop
    want to print n elements from the array after 10 seconds till complete array in a node so which is a better way
    ex:
    array = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    print:
    1
    2
    sleep 10 sec
    3
    4
    sleep 10 sec
    .
    .
    9
    10
    in this way

  • @sktamim_01
    @sktamim_01 Před 3 lety +1

    Thanks

  • @mehwishmubiin
    @mehwishmubiin Před 2 lety

    Awesome explanation

  • @manabroy3036
    @manabroy3036 Před 5 lety +1

    App Best Ho Bhai. Bhai Dojo Toolkit ke upar video banao.

  • @snehamohan121
    @snehamohan121 Před 3 lety +1

    Sir, though I press ctrl+S my console. Log answer is not getting printed

  • @PraveenSinghSidhu
    @PraveenSinghSidhu Před 2 lety

    Bhatren Harry bhai

  • @natural_world_creation6982

    Very helpful video 👍

  • @pradeepyadav2562
    @pradeepyadav2562 Před 2 lety +2

    let stri = "3434";
    console.log(stri);
    console.log("length is ", stri.length);
    console.log("data type is " + (typeof stri));
    stri = Number(stri);
    console.log(stri);
    console.log("length is ", stri.length); //why undefined?
    console.log("data type is " + (typeof stri));
    please answer :why second last line of code gives undefined value of length of number?

  • @learnandearn9620
    @learnandearn9620 Před 2 lety +1

    thanks sir

  • @iksingh8722
    @iksingh8722 Před 3 lety +2

    sir how do we add signs in for loop i can't do this.

  • @jagdishkumar2106
    @jagdishkumar2106 Před 2 lety

    This is for loop
    For(let i=0; i

  • @someone-on-earth
    @someone-on-earth Před rokem

    17:49 can someone explain why I am getting the index values instead of key names in obj ?
    This is my output:
    The 0 of object is Ronny
    The 1 of object is programmer
    The 2 of object is new delhi

  • @msbasera
    @msbasera Před 2 lety

    Thank you bhai ❤️

  • @ashutoshdixit9598
    @ashutoshdixit9598 Před 2 lety

    That's great👍👏👏😊😊

  • @ANILKUMAR-mi5xm
    @ANILKUMAR-mi5xm Před 4 lety

    ESA lag RHA h pura python copy kiya hai
    Thanks harry bhai python se languages m maza ara h

  • @eternity_2305
    @eternity_2305 Před 2 lety +1

    How to write it in span rather than console.log

  • @strollwithsarah73
    @strollwithsarah73 Před 3 lety +1

    can any one explain k ( i ki value 99 kasy ho jay ge ?) or ye 99 ku print howa ?

  • @Vikash-mb9zi
    @Vikash-mb9zi Před 2 lety

    This man is amazing. ♥️

  • @kpallavipallavi
    @kpallavipallavi Před 2 lety

    Thank you sir

  • @Mohd_Zeeshan618
    @Mohd_Zeeshan618 Před 3 lety +2

    Can anyone tell me 'Where from Harry bhai complete his programming course'

    • @ibrahimshaz6198
      @ibrahimshaz6198 Před 3 lety +1

      IIT Kharagpur

    • @Mohd_Zeeshan618
      @Mohd_Zeeshan618 Před 3 lety +1

      @@ibrahimshaz6198 is he very talented or teaching management of IIT kharagpur is unique???

    • @ibrahimshaz6198
      @ibrahimshaz6198 Před 3 lety

      You don't know iit, it's one of the world's biggest universities. He had studied where the ceo of Google studied.

  • @rajabhishek4973
    @rajabhishek4973 Před 5 lety +1

    Nice sir amezing video

  • @murtazahanzala5173
    @murtazahanzala5173 Před 5 lety +2

    yr programming of embedded systems ka course bhi le ker ao na ... plzz

  • @CoralAbhi
    @CoralAbhi Před 3 lety +1

    Amazing ❣️

  • @arthabhunter
    @arthabhunter Před 2 lety +1

    harry bhai jara ye karna kya bug ho gaya he : let i = 1
    for(i

  • @BhaktaBhusanDas
    @BhaktaBhusanDas Před 2 lety +2

    Rohan Das is best friend of Harry bhai.

  • @ishtiaqahmad4118
    @ishtiaqahmad4118 Před 4 lety

    Good explained I.A.Siddiqui

  • @samuelfrank1369
    @samuelfrank1369 Před rokem

    Thanks a lot Bhaiyaa

  • @crystalcode4357
    @crystalcode4357 Před 4 lety +2

    Please tell the theme you use in vs code
    And a great explaination

    • @ronak.wadhwani
      @ronak.wadhwani Před 3 lety

      'Monokai' Theme , press "Ctrl + k + t " to change themes

    • @aaryanbhurtel8577
      @aaryanbhurtel8577 Před 3 lety

      @@ronak.wadhwani Do you know which theme programming with mosh use??

  • @samikshapattir
    @samikshapattir Před rokem

    Sir on Replit only one file is working but when we are making new one that is not working and not showing output?

  • @muhammadshaiq7906
    @muhammadshaiq7906 Před 3 lety +1

    18:37 Kia ye syntax deprecated hochuka h?

  • @bhavnarani7306
    @bhavnarani7306 Před 2 lety

    Great👍

  • @lzgdevil
    @lzgdevil Před 2 lety

    sir how to array values or anything in single line separated by space using consol.log??

  • @manishbhamare2214
    @manishbhamare2214 Před 5 lety

    Frustrated with too many ads , but still your content holds viewer till the end... You deserve it☺️... Kel creating this excellent kind of stuff

  • @manantyagi6905
    @manantyagi6905 Před 3 lety +1

    love to learn

  • @mdminhazalam2298
    @mdminhazalam2298 Před 2 lety

    For loop ke liye
    for (let i=1; i

  • @aryansharma8794
    @aryansharma8794 Před 3 lety

    Amazing tutorial sir

  • @bip.bispurkayastha8419

    U r the best

  • @neilrehani.1409
    @neilrehani.1409 Před 3 lety +1

    6:40: Harry Sir, I found that we can also add the '

  • @alkeshace6158
    @alkeshace6158 Před 3 lety +1

    Op Bro

  • @engineerbhai7642
    @engineerbhai7642 Před 5 lety

    Excellent work

  • @princesukhala7106
    @princesukhala7106 Před 2 lety

    7:00min
    Done done
    Again

  • @usamaansari3284
    @usamaansari3284 Před 4 lety

    what is the difference between document.write and console.log?

  • @hardcore7559
    @hardcore7559 Před 2 lety

    great

  • @avinashsharmaandcrew2685
    @avinashsharmaandcrew2685 Před 5 lety +1

    Harry bhai ML continue kb kr rhe ho usme neural networks logistic regression ki coding unsupervised learning clusturing bahot kucch reh gya h

  • @gabbarsingh6562
    @gabbarsingh6562 Před 2 lety

    For Future Reference
    13:48 - forEach loop
    15:59 - object creation and forEach in object
    18:19 - forEach loop with more variation
    Refer syntax from here.

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

    Harry sir look
    Like for let is not working whats do i do sir

  • @DoUSuggon
    @DoUSuggon Před 2 lety

    Is ForEach loop only used for arrays and objects in looping?

  • @GlitchyGlobe
    @GlitchyGlobe Před 2 lety

    Please for and while ka difference batao

  • @nathulalkumar5804
    @nathulalkumar5804 Před 2 lety

    mai ek dhuvidha me hu ki jo foreach vala jo apna bataya he usme element ka matlab kya he vo cheez kaha se aayi he

  • @niravparekh9187
    @niravparekh9187 Před 3 lety

    Difference between for and forEach is:
    for is a Synchronous way.. script will not continue until for loop ends;
    whereas forEach is an Asynchronous way... script will continue to the next statement even if forEach did not end.
    It is better to use for instead of forEach.

  • @getknowledgebite3413
    @getknowledgebite3413 Před 2 lety

    sir When I am running this code then my output is 1 2 3 4 5 7 8 9 10 .....
    in your output 5 not exist but 6 exist how?????
    let k = 0;
    do{
    if(k===5){
    k++;
    continue;
    }
    console.log(k + 1);
    k++;
    }while (k < 10);

  • @ashishsahuT
    @ashishsahuT Před 3 lety +1

    👌👌

  • @SachinKumar-nz5bn
    @SachinKumar-nz5bn Před 3 lety +1

    which extension u r using for text highlighting

  • @naveenkamath2882
    @naveenkamath2882 Před 4 lety +1

    Bro how to avoid these infinite loops
    The browser stops all of a sudden

  • @shahi_lovers
    @shahi_lovers Před 3 lety +1

    control s sa save nhi hota mra kuch bh

  • @shoccho_transparent
    @shoccho_transparent Před 3 lety

    what is the term "key" meant for?

  • @skynetwork2738
    @skynetwork2738 Před 5 lety +1

    Gagan Bhatt uttarakhand.
    Sir data structure ki serise kab aayegi

  • @navidmansuri8383
    @navidmansuri8383 Před 4 lety

    (1).....
    let no = 0; sir.....ham ye code likh te he to 1+ kar de ta he .....aasa kuy ho ta he...
    pleace help me pleace help me...
    while (no

  • @user-zx2sd6gg5t
    @user-zx2sd6gg5t Před rokem

    sir object iteration line 48 me $ ka use kyun kia gaya ?

    • @user-zx2sd6gg5t
      @user-zx2sd6gg5t Před rokem

      ok I found it may be , without the $ ,`[key]` is treated as string

  • @sadia907
    @sadia907 Před 2 lety

    How to access playlist

  • @adnanharadwala8611
    @adnanharadwala8611 Před 3 lety

    At 17:28 I wrote same as you
    But my output is
    ${key} of the object is ${obj[key]}
    What to do ?

  • @ektabansal5332
    @ektabansal5332 Před 2 lety

    I am 99% sure Shubham and Rohan Das are harry's best friends

  • @RohanDasRD
    @RohanDasRD Před 5 lety

    Awesome

  • @mayankkumar-ep4ky
    @mayankkumar-ep4ky Před 3 lety

    kvi document p v bnaya kro na with CSS jysa page hmme dkhne ko milta h kya baar baar ap srf console p bna rhe ho.

  • @NiteshSharma-tf7ze
    @NiteshSharma-tf7ze Před 5 lety

    harry bahi Vs code me graphics.h include kaise kare

  • @music-tf2yc
    @music-tf2yc Před 3 lety

    Animation Mai loop kse use krte hai ?

  • @mailtodanish
    @mailtodanish Před 5 lety

    awesome

  • @preethandal6136
    @preethandal6136 Před rokem

    Ek bar apne key bracket me lgaya h
    ,
    Dusri bar apne doller ke sath lgaya h .plz plz yeh sab chhoti chhoti cheeze bi bhut confuse kr deti h ..plz Harry bhai