While Loops in JavaScript | JavaScript Tutorial in Hindi #10

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 1,4 тыс.

  • @CodeWithHarry
    @CodeWithHarry  2 года назад +837

    Kya yaar circus ho gaya is video me poora 😂😅

    • @ettisafxrup
      @ettisafxrup 2 года назад +30

      🤣🤣🤣 Lekin maja aaya bhai sikhh kar. Thank you so much

    • @shinroyalkings007
      @shinroyalkings007 2 года назад +22

      Lol...Harry bhai is joking rare in comments 😁

    • @umairabdullah9041
      @umairabdullah9041 2 года назад +10

      Circus accha nhi h🤣🤣

    • @chetanuzumaki9581
      @chetanuzumaki9581 2 года назад +7

      😂😂😂 harry bhai lots of love

    • @Aryan_1557
      @Aryan_1557 2 года назад +10

      what are you planning for 10 million ?
      any special video ?
      ya you will reach 10 M soon we can do that.

  • @osamaanees8406
    @osamaanees8406 Год назад +91

    Thank you for sacrificing your 64 GB RAM and Ryzen 9 for us.

  • @RudyGaming-v2h
    @RudyGaming-v2h Год назад +10

    Creating a multiplication program using do while loop...........
    let n = prompt("Enter the value of n");
    n = Number.parseInt(n);
    let i =0;
    do{i++
    console.log(i+"X"+n +"=" +i*n)
    }while (i

  • @ALLROUNDERSHORTBANDA
    @ALLROUNDERSHORTBANDA 3 месяца назад +2

    let n=parseInt(prompt("enter a number "))
    let i=1+
    while (i

  • @AnkitPalji-v5c
    @AnkitPalji-v5c 2 года назад +38

    Teachers don't just teach they prepare us for the ahead🙏🙏 I Love You Harry Bhai❤❤

  • @GaganSharma-qu6yc
    @GaganSharma-qu6yc 9 месяцев назад +4

    aise hi teacher ki zaroorat hai colleges me jo real time me wo cheeze bhi karke dikhayen jisse humara computer crash ho sakta hai.
    literally this man has scrificed his entire lifetime for quality education for free, even when he could have earned millions of dollars working for a MNC, he really understands the feeling of not getting quality education for free.
    HATS OFF TO YOU HARRY BHAI
    🙏

  • @astroblemegaming6294
    @astroblemegaming6294 2 года назад +42

    Factorial via While loop:
    n = prompt("Enter the Number")
    n = Number.parseInt(n)
    let factorial = 1;
    let i = 1;
    while(i

  • @aaryantiwari9877
    @aaryantiwari9877 Год назад +21

    sense of humour of editor and harry both are epic

  • @sameerrana6356
    @sameerrana6356 2 года назад +61

    Huge respect for you sir for putting out such good videos, please keep up the good work.

  • @Shadow_FREE.FIRE444
    @Shadow_FREE.FIRE444 8 месяцев назад

    do while loop
    let a=10;
    do{
    console.log(i)
    i++;
    }while(i

  • @rabdeepkaur6881
    @rabdeepkaur6881 2 года назад +41

    Sir you are jsut brilliant.i am house wife right now...with your course I feel like yeahhhhhh now I can do something thankyou so much Harry sir lots of love

  • @Asthakwh
    @Asthakwh 2 года назад +2

    Sir aise padhne ke baad bor ni hote...aur doubt bhi ni rahte ... thankyou sir
    Maine 2 hour me 10 lectures complete kar liye !!

  • @farzanna
    @farzanna 2 года назад +14

    Thanks a billion, watching you from Toronto being a student, learning a lot from your amazing videos, Great content.

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

      @@wahabkhokhar8826 tum na kro kro

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

      @@funnycartoonstory07863 Meri frontend complete hi chuki har bat main rai deny ki zaroorat nhin hoti

  • @ankithamirani4491
    @ankithamirani4491 2 года назад +11

    // write a program to demonstrate while loop
    let a = prompt("Enter a number you want to print:-");
    a = Number.parseInt(a);
    let i = 1;
    while (i

  • @nitin1436_
    @nitin1436_ 2 года назад +12

    Sir i watch your c language full course and your way of explanation is boom😅
    Thank you so much sir ji 🙏🙏

  • @yashprakash4436
    @yashprakash4436 Год назад +2

    circus sahi tha ...bs video dekh raha tha lekin jb apne ye circus dikhaya to mene bhi try kiya or while lopp smjh me aa gya ..isiliye app ye sb krte raha kro maja ata hai wo sbb krne me coding ko intresting bna dete ho app

  • @anamikamudotiya
    @anamikamudotiya Год назад +7

    bhai Editing ek Number in all videos of this course, or mazza aa rha padne mai,
    circus nhi karna tha...😅
    Thank you so much for such an amazing course for free...

  • @HemantSharmahs
    @HemantSharmahs 2 года назад +30

    ///FACTORIAL USING WHILE LOOP
    let fact = 1;
    let n = prompt("ENTER A NUMBER");
    n = Number.parseInt(n);
    let i = 1;
    while(i

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

      No need of fact because it can be executed by using n and i🙂

    • @Legend-fo4xh
      @Legend-fo4xh Год назад

      @@itsshowtime2600 can you send code

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

      How do u access prompt and alert in vs code without error???

    • @biharichaursiya7624
      @biharichaursiya7624 2 месяца назад

      @@tanishbhardwaj1813 you have to create an html file and link it with java script file

  • @ravi_sikarwar_19899
    @ravi_sikarwar_19899 2 года назад +2

    Kahe ko karne ka circus ...hats off to you Harry bhai

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

    //code executing while loop
    let n=prompt("Enter a number:")
    n=Number.parseInt(n)
    let i=0;
    while(i

  • @rohankulkarni5657
    @rohankulkarni5657 2 года назад +9

    //table program Using do-while loop//
    let num = prompt("Enter The Value which you want to get table")
    let i = 1;
    do {
    console.log(num, " * ", i, " = ", num*i);
    i++;
    } while(i

  • @liamliam1820
    @liamliam1820 2 года назад +1

    let n=prompt("Enter the value of number")
    n=Number.parseInt(n)
    let fac=2 i=2;
    while(i

  • @utsabmandal1070
    @utsabmandal1070 2 года назад +6

    n = prompt("Enter the Number")
    n = Number.parseInt(n)
    function fact(x) {
    let factorial = 1;
    let i = 1;
    while(i

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

    // Program for factorial of n //
    let fact=1
    let n=prompt("enter the value of n")
    n= Number.parseInt(n)
    for(let i=1;i

  • @ravirajadhalikar9679
    @ravirajadhalikar9679 2 года назад +10

    Thank you Harry for the wonderful sessions, the sessions are very useful. Much Appriciated!

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

    // while loop quick quiz
    let n = prompt("Enter the value of n")
    n = Number.parseInt(n)
    let f = 1, i = 0;
    while(i

  • @theatypicaldeveloper
    @theatypicaldeveloper 2 года назад +15

    Hey Harry, great video. Thank you for providing english subtitles!

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

    let b = prompt("enter the value of")
    b = Number.parseInt(b)
    let i = 99;
    do {
    console.log(b)
    i++;
    } while (i < b)

  • @cochunter4597
    @cochunter4597 2 года назад +6

    Hi Harry bhai I am from Pakistan I completed your html and css course and now learning this course your videos helps me alot thank you may Allah bless you more😊❤️
    One thing I want to say
    ( circus acha nahi hai 😋👍😂)

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

    // Q. Write a Program To Add n Natural Numbers By Using While Loop.
    let sum = 0;
    let n = prompt("Enter The Numbers");
    n = Number.parseInt(n);
    let i = 0;
    while(i

  • @anwrites2598
    @anwrites2598 Год назад +4

    Brilliant Harry bhai❤️❤️ I love your way of teaching...just everything is perfect...your notes, memes vedio editing....just everything
    Love from Pakistan 🇵🇰

    • @hana-dz9kt
      @hana-dz9kt 10 месяцев назад

      Iski gaane mein maar0 pakistani hai

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

    let a = prompt("Give me the value of n");
    n = parseInt(a)
    const i = 0;
    while (i < n){
    console.log(i);
    i++;
    }

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

      TypeError de rha hai kia galti kiya me?

  • @a.ksmelodiousmusic1335
    @a.ksmelodiousmusic1335 Год назад +4

    While loop Example:
    let a= prompt("What is your first number? : ")
    a= Number.parseInt(a)
    rec= "Recommandation: set the value of i= 0"
    console.log(i)
    let i= prompt("What is your second number? : ")
    i= Number.parseInt(i)
    while(i

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

      bhai in dono mai kya differnce hn .. both of these lopps operates in sAME WAY

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

      @@mohammadalfazafan6665 while loop ko samaj lo bas. Do while loop use nahi hota ab

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

    Best Tutorial for Javascript in the history of youtube......

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

    let n= 5;
    n=Number.parseInt(n)
    while(n>=1){
    console.log(n + "Harry Bhai is Great ")
    n--:
    Result - 5Harry Bhai is great
    4Harry Bhai is great
    3Harry Bhai is great
    2Harry Bhai is great
    1Harry Bhai is great

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

    Thank you so much sir 💘
    What an amazing course 💙🥰🌹

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

    let n =prompt("enter the value of n")
    n = Number.parseInt(n)
    let i = 0;
    while(i

  • @kshirodpatel
    @kshirodpatel 2 года назад +11

    @CodeWithHarry we want a complete MERN stack tutorial after this JS session is over.

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

    let a =Number(prompt("enter a number: "))
    let fact =1;
    let i =1;
    while(i

  • @abhijitradke7404
    @abhijitradke7404 2 года назад +5

    Thank you very very much Harry Sir for the awesome course 🥰

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

    // QuickQuiz - Write a sample program demonstarting while loop
    let n = 100;
    let i = 0;
    while(i

  • @rm-personofcolor
    @rm-personofcolor 2 года назад +4

    Learning from USA. great job sir !

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

    You are an inspiration for beginner coders like us. its been a great journey since I started watching your tutorials.
    Thank you so much for these wonderful contents..@CodeWithHarry..💌💌..
    And haan sir circus achha nhi hai...🤣🤣🤣🤣

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

    console.log("hello");
    let num = prompt("give me a number");
    let i = 1;
    let factorial = 1;
    while(i

  • @deblinadas8504
    @deblinadas8504 Год назад +2

    Such grt tutorials 🙏

  • @captainoddessy
    @captainoddessy 2 года назад +10

    w3 should add console.tullu as replacement of console.log
    #console.tullu

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

    quick quiz
    // do-while loop
    let n = prompt("Enter the value of n") // user se value manga
    n = Number.parseInt(n) // value ko ineger-number me convert
    let i = 1;
    do{
    console.log(i)
    i++;
    }while (i < n)

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

    Sir, please start a crash course on C program. Mainly loops in C are difficult.to understand

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

    One of Best coding teacher.

  • @aiknowledge-n2s
    @aiknowledge-n2s 2 года назад +5

    How different is type script from javaScript?
    difference between jsx and tsx ?
    Can you make a course which the very fundamentals of REACT JS.

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

      very little difference if you ask me

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

    Let n = prompt (" enter the value n ")
    Let n= 1
    N. Number. Percent ( n)
    While ( i> n)
    Console. Log( i)
    I++

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

    7:18 - Circus accha nahi hai 😂😂😂😂

  • @nasirnawaz4179
    @nasirnawaz4179 Год назад +2

    You are a legendary teacher.

  • @mayne4672
    @mayne4672 2 года назад +5

    Circus is bad bad

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

    *Quick Bug*
    let n = prompt("Enter the value of n");
    n = Number.parseInt(n);
    let i = 0;
    while(i

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

      Console.log("I");
      Ye hoga

  • @CodeWithHarry
    @CodeWithHarry  Год назад +32

    Code Backup Repository: github.com/CodeWithHarry/ultimate-js-course-youtube

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

      harry bhai kya karo kuch din sa koshish kar raha ho string number ma change nahi ho raha ha

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

      harry bhai kya karo kuch din sa koshish kar raha ho string number ma change nahi ho raha ha

    • @jadhavkamini2199
      @jadhavkamini2199 Год назад +2

      let number = prompt("Enter your number")//Input
      number = Number.parseInt(number)//Conversion of string into number
      .
      .
      .
      Hope it helped you ❤

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

      notes provide kr do plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

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

    You will be never bored in Harry bhai's classes....Circus bada funny tha waise😂😂

  • @Sneha_Bhatia
    @Sneha_Bhatia 7 месяцев назад +1

    For those, who are facing difficulty in executing Prompt in Replit.
    You can try adding
    Const prompt = require(‘prompt-sync’)();
    in the very beginning of the program.
    Prompt will start working.

    • @DrNileshvasava
      @DrNileshvasava 6 месяцев назад

      Thanks it is working, how?
      I m just beginner.

  • @islamicworld786
    @islamicworld786 10 месяцев назад +2

    Circus accha nhi hai lekin haris bhai joker accha hai😂
    Salute to you for your way of teaching🖖

  • @KrishnaAbhale-cn9qy
    @KrishnaAbhale-cn9qy 9 месяцев назад +1

    Press ctrl+alt+del keys to close app in such conditions. It will help

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

    circus taught us what not to do!! but u r good trainer and entertainer in between lessons!!

  • @adityaraj6389
    @adityaraj6389 2 года назад +1

    //sample program of do-while loop
    let a = prompt("Enter any value")
    let i = 0
    do{
    console.log(i+1)
    i++;
    }while(i

  • @jyotysingh653
    @jyotysingh653 Месяц назад

    Daring teacher! Hats off to you! Thanks for this awesome video

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

    Thank you so much harry bhai for giving us the best course for free

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

    quick quiz
    let n = prompt("Enter the n")
    n = Number.parseInt(n)
    let i = 0;
    while (i

  • @JavaCodingwithRaju-kv7xc
    @JavaCodingwithRaju-kv7xc Год назад +1

    hi, Adding const prompt = require('prompt-sync')(); to the very beginning of the program fixed it for me. for ex.
    const prompt = require('prompt-sync')();
    let n = prompt("Enter the number: ");
    n = Number.parseInt(n);
    let i = 0;
    while (i < n) {
    console.log(i);
    i++;
    }

  • @nileshmishra397
    @nileshmishra397 2 года назад +2

    Let n = prompt ( "enter the value is n")
    Let n = 8
    While ( I

  • @himanshurule9038
    @himanshurule9038 2 года назад +1

    let n = prompt("Enter the value of n")
    n = Number.parseInt(n)
    let i = 0;
    while(i

  • @inspire321
    @inspire321 17 дней назад

    let m=prompt("put a number to divide itself")
    m=Number.parseInt(m)
    let n=1;
    while(n

  • @satyamkumarsingh3501
    @satyamkumarsingh3501 11 месяцев назад +2

    Code For the Factorial Part using While Loop:
    const prompt= require("prompt-sync")();
    // n= Number.parseInt(n)
    let fac = 1;
    let i =0;
    let n = prompt("Enter the value of n: ")
    n= Number.parseInt(n)
    while(i

  • @cartoonkd07
    @cartoonkd07 10 месяцев назад

    // while loop
    let n = prompt("Enter the value of n: ");
    n = Number.parseInt(n);
    let i=0;
    while(i

  • @inspire321
    @inspire321 17 дней назад

    let z= prompt("PRACTISE QUESTION")
    z=Number.parseInt(z)
    do{
    console.log(z)
    z++;
    }while(z >=100)

  • @sayyamjain101
    @sayyamjain101 6 дней назад

    let b=prompt("Enter a number: ");
    b=Number.parseInt(b);
    let factorial=1;
    do{
    factorial*=b;
    b--;
    }while(b>0)
    console.log(factorial);

  • @technologychamber9749
    @technologychamber9749 Год назад +2

    One of my favourite video in this playlist 😉

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

    // sum of first n natural numbers using while loop
    let n = prompt("enter the value of n for sum ")
    n = Number.parseInt(n)
    let i = 0
    var sum = 0
    while (i

  • @umerferoz8353
    @umerferoz8353 Год назад +2

    //For in loop Quiz
    let totalmarks = 100;
    const marks = {
    Harry: 70,
    Uzair: 80,
    Umer: 60,
    Shehroz: 40,
    Shayan: 30
    };
    for(let a in marks){
    console.log('The marks of ' + a + ' are ' + marks[a] + ' out of ' + totalmarks);
    }

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

      @umer feroz
      The marks of Harry are 70 out of 100
      The marks of Uzair are 80 out of 100
      The marks of Umer are 60 out of 100
      The marks of Shehroz are 40 out of 100
      The marks of Shayan are 30 out of 100

  • @rohitgiri9179
    @rohitgiri9179 2 года назад +1

    let n=prompt("what is your number ");
    n=Number.parseInt(n);
    let i=10;
    do{
    console.log(i);
    i++;
    }
    while(i

  • @rajasaad9616
    @rajasaad9616 2 года назад +1

    // write a program that can display even numbers
    let a = prompt("enter your number")
    a = Number.parseInt(a)
    let i = 0;
    while(a>i){
    i+=1
    i++
    console.log(i)
    }

  • @shubhamsolanki208
    @shubhamsolanki208 6 месяцев назад

    same bhai me bhi pichli loop wali video dekh ke chul machi thi, mere sath bhi yahi hua but me brave browser use kr rha tha, mujhe bhi emergency shut down krna pda because pura laptop hang ho gya 😂😂😂😂, but we are humans, andekhi chizo pr vishwas nhi krte,😂, must try dosto ek bar try krke dekho mza ayega🤣

  • @Evilasdevil
    @Evilasdevil Месяц назад +1

    Awesome

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

    // Factorial via While loop:
    n = prompt("Enter the Number")
    n = Number.parseInt(n)
    let factorial = 1;
    let i = 1;
    while(i

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

    thanks harry bhai😇😇😇

  • @kaushikrajit5169
    @kaushikrajit5169 Год назад +2

    // Q. Write a Program To Multiply First n Factorial Numbers By Using While Loop.
    let fact = 1;
    let n2 = prompt("Enter The Number");
    n2 = Number.parseInt(n2);
    let i = 1;
    while(i

  • @AdBoss12
    @AdBoss12 2 года назад +1

    You are such good teacher

  • @divyanshugupta2277
    @divyanshugupta2277 2 года назад +2

    Quality content following the whole playlist...thanks bro...

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

    Best teacher in the world

  • @SHAIKHABDULMOIZ-tw9bs
    @SHAIKHABDULMOIZ-tw9bs Год назад +2

    let tab = prompt("Enter a Number");
    tab = Number.parseInt(tab);
    let i = 1;
    while(i

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

    Bhai iske baad agar Ese hi React Ultimate Tutorial Shuru ho jaye, To Mazza aa Jaye...Thanks a lot bro.

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

    // Q. Write a Program To Add n Natural Numbers Using D0-While Loop.
    let sum = 0;
    let n1 = prompt("Hey! Enter The Numbers To Add The Value");
    n1 = Number.parseInt(n1);
    let i = 0;
    do{
    sum += i+1;
    i++;
    }while(i

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

    Simple Infinite Loops
    for(;;);
    while(1);
    do ; while(1);
    😊

  • @FARRUKHNOMAN-x8x
    @FARRUKHNOMAN-x8x 3 месяца назад

    this course is awesome but the main thing is that you name the third chapter of video "for loop" instead of "do while loop"

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

    Love you Bhai kasam sy itna acha AP samjhaty hoo love you from Pakistan 💓💓💓

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

    //factorization using for loop
    let ans = 5;
    for (let i = 1; i < 5; i++) {
    ans = ans * i
    }
    console.log(ans)
    //factorization using do while loop
    let fact = 5;
    let p = 1
    do{
    fact = fact * p
    p++;
    }
    while( p< 5)
    console.log(fact)

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

    let n=prompt("Enter the value of number")
    n=Number.parseInt(n)
    let fac=2
    i=2;
    do{
    console.log(i)
    fac*=i
    i++;
    }while("run")
    console.log(fac)

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

    harry bhai you are real khatro ke khiladi

  • @SMY22
    @SMY22 5 месяцев назад +1

    I am come from Sigma Batch to learn JavaScript Deeply

  • @aaryanjain3902
    @aaryanjain3902 5 месяцев назад +1

    7:32
    While loop me true ki jagah odd likh do guys
    Thank me later😊

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

    Sir you are mind blowing

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

    Circus accha hai bhai ek number bhai

  • @tru..evilWizzard
    @tru..evilWizzard Месяц назад

    Thank you bhaiya 🎉