If and Else statement in

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

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

  • @HiteshCodeLab
    @HiteshCodeLab  6 лет назад +4

    Videos in a proper sequence and with discussion support are available at my website (of course free). It's easier for me to address issues at one place, instead of drilling into every video. A quick word, please help others in the discussion too.
    courses.learncodeonline.in/learn/Javascript-for-2018-developer

    • @aniketsonker7877
      @aniketsonker7877 5 лет назад

      Sir can u make sql or mysql full crash course video...

    • @harinarayanmahto5392
      @harinarayanmahto5392 4 года назад

      #Thank_you_very_much sir
      //Grade problem
      //student marks
      //50-good
      //30-poor
      //0-fail
      var marks=72
      if(marks=50)
      {
      console.log("amaZing")
      }
      else if(marks30)
      {
      console.log("GOOD")
      }
      else
      {
      console.log("POOR")
      }

  • @bibeksewa1612
    @bibeksewa1612 5 лет назад +4

    **with range**
    var print = console.log
    var marks = 9
    if(marks === 0 ){
    print('Fail')
    }else if(marks

  • @raghavjha8996
    @raghavjha8996 6 лет назад +2

    You are my favorite teacher of all time. Thanks sir.

  • @rajanchoudhary7432
    @rajanchoudhary7432 6 лет назад +7

    Hitesh is in infinite loop today (unstoppable)

  • @nayandas-ld4zp
    @nayandas-ld4zp 5 лет назад

    Thank You Sir , and I did my assignment...!
    var studentMarks = '10'
    if (studentMarks === '10') {
    console.log('Amaming');

    } else if (studentMarks === '5') {
    console.log('Good');

    } else if (studentMarks === '3') {
    console.log('Poor');

    } else if (studentMarks === '0') {
    console.log('Fail');

    } else {
    console.log('Not a student');

    }

  • @prakharsrivastav9416
    @prakharsrivastav9416 6 лет назад +2

    Sir please make videos of JavaScript in which we see the application of JavaScript how we use JavaScript for making dynamic web pages.

  • @BabarAli-lr8gs
    @BabarAli-lr8gs 4 года назад +1

    sir, you are great.. watching your videos in 2020..

  • @vimalarani9426
    @vimalarani9426 4 года назад

    very nice teaching

  • @deekshithrajbasa
    @deekshithrajbasa 5 лет назад +2

    let marks= '9'
    if(marks == '10'){
    console.log("amazing you've got a choclate")
    } else if (marks

    • @ashutoshgupta434
      @ashutoshgupta434 4 года назад +1

      It should be marks >= 5 in line 6, otherwise the else block will not make sense.

  • @codingwithsam9194
    @codingwithsam9194 6 лет назад +5

    good sir. really love you please upload your live stream today

  • @subhamadhikari
    @subhamadhikari 5 лет назад

    For Range
    var marks = 1;
    if (5

  • @yashrajanshukla7790
    @yashrajanshukla7790 6 лет назад +1

    Wow! Amazing explanation.. But i am not happy with youtube notification.. Why he is not sending it.. Bte you are amazing

  • @garimadeswal9543
    @garimadeswal9543 5 лет назад

    var marks=4
    if(marks==10)
    console.log('amazing');
    else if (marks=5)
    console.log('good');
    else if(marks=3)
    console.log('poor');
    else if(marks=0)
    console.log('fail');
    else
    console.log('check again');

  • @sachintiwari5871
    @sachintiwari5871 6 лет назад +1

    Great sir ..... Today you are uploading 3 videos of js that is cool sir...you are very fast sir... thanks for this videos...

    • @HiteshCodeLab
      @HiteshCodeLab  6 лет назад +1

      Count that again

    • @sachintiwari5871
      @sachintiwari5871 6 лет назад

      Sorry sir sorry ...im doing this for your reply sir ..... there are total 8 videos ......you are my ideal sir .... thanks a lot for your all priceless videos....love you sir🙏🙏🙏

    • @sachintiwari5871
      @sachintiwari5871 6 лет назад

      Sir in our education system we want teacher like you.... because sir in india there is very few numbers of good teachers......and sir you are one of those

  • @soyeb3170
    @soyeb3170 6 лет назад +1

    studentMark = 0
    if (studentMark == 10 ) {
    console.log('amazing')
    } else if (studentMark == 5) {
    console.log('good')
    } else if (studentMark == 3) {
    console.log('poor')
    } else if (studentMark == 0) {
    console.log('fail')
    } else {
    console.log('plz enter your mark correctly')
    }

  • @TanishqAnand
    @TanishqAnand 4 года назад

    var marks = 1;
    if (marks == 10) {
    console.log('Amazing')
    } else if (marks >= 5) {
    console.log('Good')
    } else if (marks >= 3) {
    console.log('Poor')
    } else if (marks >= 0) {
    console.log('Fail')
    }

  • @sameermerchant2337
    @sameermerchant2337 4 года назад

    Var studentMark = 9;
    If (studentMark < 10){
    Console.log('Amazing') };
    ElseIf (studentMark == 5){
    Console.log('Good')}
    Elseif (studentMark ==3){console.log("Poor")}
    Else {Console.log("fail")};

  • @its-nitish-kumar-30
    @its-nitish-kumar-30 6 лет назад +3

    unstoppable..

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

    you are great dada

  • @BulbDrama
    @BulbDrama 6 лет назад

    Great series on javascript

  • @samskritashubhashita6450
    @samskritashubhashita6450 6 лет назад +2

    Sir,what is true and what is false there?
    Nothing is declared before..

  • @kshresthasan1845
    @kshresthasan1845 5 лет назад

    var marks = 5
    if (marks == 10)
    {
    console.log("Amazing")
    }
    else if (marks == 5)
    {
    console.log("Good")
    }
    else if (marks == 3)
    {
    console.log("Poor")
    }
    else
    {
    console.log("Fail")
    }

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

    My favorite concept from today😅😅🤣🤣

  • @bhuvaneshkumar6450
    @bhuvaneshkumar6450 5 лет назад

    Damn good teacher I ever scene in utube... I'm big fan of you sir...

  • @saifullahrahman
    @saifullahrahman 5 лет назад

    thanks a ton! its easier than c++

  • @americanoimmigrante4706
    @americanoimmigrante4706 5 лет назад

    you're the best!!!!!!!!!!!

  • @kumaravelanbu1017
    @kumaravelanbu1017 4 года назад +1

    var mark = 0;
    if(mark 5) {
    console.log('Amazing')
    } else if(mark 3) {
    console.log('Good')
    } else if(mark 0) {
    console.log('poor')
    } else {
    console.log('fail')
    }

    • @shreejasoni5171
      @shreejasoni5171 4 года назад

      output is coming as fail only

    • @kumaravelanbu1017
      @kumaravelanbu1017 4 года назад

      @@shreejasoni5171 yes since mark = 0 u will get fail... U can change the mark to any value below and equal to 10 so you can get those output

  • @Somsubhra_Das
    @Somsubhra_Das 6 лет назад

    Sir you are using visual studio code. What's your opinion on webstorm ide by jetbrains dedicated for JavaScript. Jetbrains make a lot of awesome ide s. Wouldn't it be a good option for beginners?

  • @shankg8483
    @shankg8483 6 лет назад

    you r awesome sir

  • @mohitverma1631
    @mohitverma1631 5 лет назад

    Loved it man. Keep it up.

  • @codingwithsam9194
    @codingwithsam9194 6 лет назад

    watched your previous videos

  • @BhagyashriiPatil
    @BhagyashriiPatil 6 лет назад +1

    May i have similar videos of react.js??

  • @aqeebhj5467
    @aqeebhj5467 6 лет назад

    just tried:
    var studMarks = "5"
    if (studMarks == 10) {
    console.log("Amazing")
    }
    else if (studMarks >= 5) {
    console.log("Good")
    }
    else if (studMarks >=3) {
    console.log("poor")
    }
    else {
    console.log("Fail")
    }

  • @goldencreations6175
    @goldencreations6175 6 лет назад

    let marks = 0
    /// Enter marks here
    marks = 0
    if (marks>=6)
    {
    console.log("Amazing")

    }
    else
    {
    if(marks

  • @codingwithsam9194
    @codingwithsam9194 6 лет назад

    sir I have learnt java and now learning js. I had a question. Is there something like === in java as well. waiting for your reply. And please upload some tutorials on java as well

    • @HiteshCodeLab
      @HiteshCodeLab  6 лет назад

      Java is already available at courses.learncodeonline.in

    • @gauravnagar3712
      @gauravnagar3712 6 лет назад +2

      In java == check both value and type but in js == check only value and === check value plus type

  • @pile333
    @pile333 6 лет назад

    Thx very, very much.

  • @sharronsaint3827
    @sharronsaint3827 5 лет назад

    Hi Sir , how can i call a windows services from Javascript and to link with a softkey button in HTML

  • @braintrainer1314
    @braintrainer1314 4 года назад

    message for Hitesh Choudary: I have done your grade problem correctly. but when I press enter it says 'reference error'

  • @tahir-uddin-ahmed
    @tahir-uddin-ahmed 5 лет назад +1

    //solved grade problem.
    //code by Tahir Ahmed
    let num = 7;
    if(num >= 6 && num < 10 ) {
    console.log('amazing');
    }
    else if(num >= 4 && num < 5) {
    console.log('good');
    }
    else if(num >= 1 && num < 3) {
    console.log('poor');
    }
    else {
    console.log('fail');
    }

  • @izaanjahangir834
    @izaanjahangir834 6 лет назад

    I know JavaScript atleast the intermediate level and also working on this but i have no idea why i am still watching this 😂

  • @swarpandya2498
    @swarpandya2498 6 лет назад

    Sir , No notifications for all your back to back uploads 😥

  • @kick-tech4691
    @kick-tech4691 6 лет назад

    Super quality videos but why very few views??

    • @HiteshCodeLab
      @HiteshCodeLab  6 лет назад

      That's how RUclips works :)

    • @kick-tech4691
      @kick-tech4691 6 лет назад

      Hitesh Choudhary I want this Chanel to be the India's best number one tech tutor chanel . Sir please do something to improve your chanels popularity please sir.

    • @kick-tech4691
      @kick-tech4691 6 лет назад

      Wow..

  • @aquibalikhan6930
    @aquibalikhan6930 6 лет назад

    if(isGrade==10){
    console.log("Amazing")
    }else if (isGrade==5) {
    console.log("Good")
    }else if (isGrade==3) {
    console.log("Poor")
    }else if (isGrade==0) {
    console.log("Fail")
    }

  • @MrSFDC
    @MrSFDC 4 года назад

    sir i done the challenge

  • @kashikakhatri1255
    @kashikakhatri1255 5 лет назад

    challenge done!😎

  • @ankitsuda
    @ankitsuda 6 лет назад

    Hey Sir, Can you give some examples where I can use JavaScript?

    • @HiteshCodeLab
      @HiteshCodeLab  6 лет назад +3

      Looks like you skipped the starting videos

  • @gurjeetsingh-qp4wp
    @gurjeetsingh-qp4wp 5 лет назад

    //Grade Problem
    var studentmarks = 5
    if (studentmarks === 10){
    console.log('amazing')
    }else if (studentmarks === 5){
    console.log('good')
    }else if (studentmarks === 3){
    console.log('poor')
    }else{
    console.log('fail')
    }

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

    How you got that code ***** voice!?😀

  • @sundark1330
    @sundark1330 6 лет назад

    Can you create js course and upload in youtube

  • @gopendra7725
    @gopendra7725 6 лет назад

    Saturday Live Tonight???

  • @galactusgaming9509
    @galactusgaming9509 4 года назад

    let studentMarks = 10;
    if (studentMarks == 10) {
    console.log('Excellent');
    } else if (studentMarks == 5) {
    console.log('Good');
    } else if (studentMarks == 3) {
    console.log('Work Hard');
    } else if (studentMarks == 0) {
    console.log('Fail');
    } else {
    console.log('please enter valid marks');
    }

  • @suhailahmedshariff6567
    @suhailahmedshariff6567 4 года назад

    //Assignment
    let Grade=10;
    if(Grade==10){console.log("Amazing");}
    else if(Grade==5){console.log("Good");}
    else if(Grade==30){console.log("Poor");}
    else if(Grade==0){console.log("fail");}
    else {console.log("Grade doesn't exist");}

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

    let std_mark= prompt('Enter Your Score');
    alert('Thanks !');
    if (std_mark==10) {
    console.log('Awesome-SuperB');
    }
    else if (std_mark==5) {
    console.log('Good,Improve Yourself');
    }
    else if (std_mark==3) {
    console.log('Poor Score,Need More Hardwork');
    }
    else if (std_mark==0) {
    console.log('Fail,Better Luck Next Time');
    }
    else{
    console.log('Your Result Is Pending');
    };

  • @keanuhowe5017
    @keanuhowe5017 6 лет назад

    var grade = 11;
    if(grade == 10){
    console.log("Amazing");
    }
    else if(grade == 5){
    console.log("Good");
    }
    else if(grade == 3){
    console.log("Poor");
    }
    else if(grade == 0){
    console.log("Fail");
    }
    else{
    console.log("No Valid Grade was added");
    }

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

    after listening that whether u subscribe or not I just click the subscribe button ;)

  • @AdnanAli-vm4ox
    @AdnanAli-vm4ox 5 лет назад

    Done
    var MarksObtained = 10
    if(MarksObtained === 10){
    console.log('pass')
    console.log('Amazing Keep it up')
    }
    else if(MarksObtained === 5){
    console.log('pass')
    console.log('nice Work harder')
    }
    else if(MarksObtained === 4){
    console.log('Fail')
    console.log('try your best next time')
    }else{
    console.log('Absent')
    }

  • @darkalpha6530
    @darkalpha6530 4 года назад +1

    prompt("Thank you");

  • @jagannathabh1148
    @jagannathabh1148 6 лет назад +1

    God why I'm not getting notification.....

  • @yashshende2786
    @yashshende2786 6 лет назад

    sir grade problem solution
    var mark=10;
    if (mark >= 1) {
    if (mark

  • @mikhleshvaswani8697
    @mikhleshvaswani8697 4 года назад

    ❤️

  • @sss-gs4rs
    @sss-gs4rs 6 лет назад

    if there are more then 3 conditions then how to use if,else if,else conditions

    • @kumaravelanbu1017
      @kumaravelanbu1017 4 года назад

      you can use as much as you want
      like if you have 5 condition
      if(Condition 1){
      block 1
      } else if(condition 2){
      block 2
      }else if(condition 3){
      block 3
      }else if(condition 4){
      block 4
      }else {
      block 5
      }

  • @jayantakumar841
    @jayantakumar841 6 лет назад

    Saturday live?

  • @evan.barnes
    @evan.barnes 5 лет назад

    Grade Solution:
    var myGrade = '10'
    if (myGrade === '10') {
    console.log('Amazing')
    } else if (myGrade === '5' ) {
    console.log('Good')
    } else if (myGrade === '3') {
    console.log('Work Harder')
    } else if (myGrade === '0') {
    console.log('Fail')
    } else {
    console.log('You Trippin Dawg')
    }

  • @anubhavkeshav5908
    @anubhavkeshav5908 4 года назад

    Else if is not defined. This is error which is throwing someone help me solve it

  • @moulikravi
    @moulikravi 6 лет назад

    While(1) mode

  • @vishvajeetsinh_solanki
    @vishvajeetsinh_solanki 6 лет назад

    i wanted to learn java and so I chosen this but after 10 videos i realised that this is java script, not java. I don't find java tutorial on this channel. is java and java script both same? I wanted to learn basic java. plz help

    • @kartikphadke7529
      @kartikphadke7529 5 лет назад +1

      Java and JavaScript both are very different its just like sugar and salt both look similar but are dead opposite...

    • @vishvajeetsinh_solanki
      @vishvajeetsinh_solanki 5 лет назад

      @@kartikphadke7529 so the coding style is different for the same outlut?

  • @ruhankhandaker5198
    @ruhankhandaker5198 6 лет назад +1

    var stMarks = 5;
    if (stMarks > 5 && stMarks 3 && stMarks 0 && stMarks

    • @vedantpatel7128
      @vedantpatel7128 6 лет назад

      in last else statement there should be enter valid input

  • @sumitaggarwal3258
    @sumitaggarwal3258 4 года назад

    **Grade problem solution**
    let grade = 1
    if (grade 8) {
    console.log("BRAVO! You are so intelligent");
    } else if (grade < 8 && grade >= 5) {
    console.log("ITS FINE");
    } else if (grade < 5 && grade >= 3) {
    console.log("you are SO POOR")
    } else {
    console.log("FAIL");
    }

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

    let studentMarks = '0';
    console.log(studentMarks);
    if (studentMarks == 10) {
    console.log('Amazing');
    } else if(studentMarks == 5 ){
    console.log( 'Good');
    } else if( studentMarks == 3) {
    console.log( 'Poor');
    } else if( studentMarks == 0) {
    console.log( 'fail');
    }

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

      @hitesh Choudhary please check this sir...

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

      @rimshamuneer496@gmail.com

  • @prasadnastik9239
    @prasadnastik9239 4 года назад

    Who came here due to quarantine holidays....
    😀😀😀

  • @Felix-wc9ms
    @Felix-wc9ms 4 года назад

    if (Hitesh Choudary Uploded){
    const me = watch it instantly
    }

  • @hackx_hive8221
    @hackx_hive8221 6 лет назад

    :D

  • @bhavyaramaiah5249
    @bhavyaramaiah5249 4 года назад

    You talk too much and teach less, it's more details on the problem statement you want to solve more than the solution and it's concept