If and Else statement in

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
    All the learning resources such as code files, documentations, articles and community discussions are available on our website:
    chaicode.com/
    You can find our discord link, github link etc on the above website.
    Twitter/X link: x.com/hiteshdo...
    Discord link: hitesh.ai/discord
    Learn React with 10 projects: • Let's learn react from...
    Learn Docker: • A practical guide on D...
    Learn Kubernetes: • Complete Kubernetes Co...
    How does a browser works: • How does a browser wor...
    How nodejs works: • How node JS works | En...
    Learn Redux-toolkit: • Learn Redux Toolkit in...
    Learn NextJS: • Nextjs Full stack course
    Learn Typescript: • Why to learn Typescript
    Learn Javascript: • Welcome to new JavaScr...
    Learn React Native: • React Native Mastery: ...
    Learn Zustand: • React state management...
    Learn Golang: • How to get started wit...

Комментарии • 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 4 года назад

      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

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

    Hitesh is in infinite loop today (unstoppable)

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

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

  • @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');

    }

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

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

  • @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.

  • @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.

  • @soyeb3170
    @soyeb3170 5 лет назад +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')
    }

  • @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');

  • @NITISHKUMAR-yz6re
    @NITISHKUMAR-yz6re 6 лет назад +3

    unstoppable..

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

    very nice teaching

  • @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')
    }

  • @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")
    }

  • @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

  • @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")};

  • @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

  • @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

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

    My favorite concept from today😅😅🤣🤣

  • @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

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

    you are great dada

  • @tahirahmed9446
    @tahirahmed9446 4 года назад +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');
    }

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

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

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

    Great series on javascript

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

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

  • @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');
    };

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

    Loved it man. Keep it up.

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

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

    }
    else
    {
    if(marks

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

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

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

    you r awesome sir

  • @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

  • @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?

  • @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");}

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

    prompt("Thank you");

  • @gurjeetsingh-qp4wp
    @gurjeetsingh-qp4wp 4 года назад

    //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')
    }

  • @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")
    }

  • @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');
    }

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

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

  • @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")
    }

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

    thanks a ton! its easier than c++

  • @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 😂

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

    challenge done!😎

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

    Thx very, very much.

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

    watched your previous videos

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

    ❤️

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

    May i have similar videos of react.js??

  • @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')
    }

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

    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");
    }

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

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

  • @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')
    }

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

    sir i done the challenge

  • @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

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

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

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

    While(1) mode

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

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

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

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

  • @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..

  • @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");
    }

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

    Saturday Live Tonight???

  • @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

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

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

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

    Can you create js course and upload in youtube

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

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

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

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

  • @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?

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

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

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

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

  • @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

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

    :D

  • @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?

  • @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