If Else Conditionals & Switches in JavaScript | JavaScript Tutorial In Hindi #8

Sdílet
Vložit
  • čas přidán 13. 07. 2019
  • 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.com/videos/java...
    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.codewithharry.com
    ►Facebook - / codewithharry
    ►Instagram - / codewithharry
    ►Personal Facebook A/c - / geekyharis
    Twitter - / haris_is_here

Komentáře • 186

  • @CodeWithHarry
    @CodeWithHarry  Před rokem +6

    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

  • @AmanKumar-ng7gj
    @AmanKumar-ng7gj Před 5 lety +41

    and ...thank you so much. by your continuous effort we are learning in very easy way, free of cost.
    Thank you Harry bhai..love you..♥️

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

    My first programming language

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

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

  • @krrishchaudhary1085
    @krrishchaudhary1085 Před 3 lety +17

    11:30
    Question Solved Sir....
    Answer :
    let age = 18;
    canVote = true;
    if(age >= 18 && canVote ) {
    console.log("You can vote");
    }
    else if(age

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

    Awesome tutorial bhai, i was new in programming and this is my first launguage after html and css, and i can easily access notes and all, wish me luck for the long journery,, allah hafizz

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

    you are awesome.......i am a begginner and now i am learning very fast .........thanks bro

  • @AmitKumar-oz1ti
    @AmitKumar-oz1ti Před 3 lety +1

    Wa Harry Bhai mst video bnayi apne,

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

    Thank you so much sir for your high efforts

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

    Superb videos sir hats of to u

  • @smartcomputring1034
    @smartcomputring1034 Před 3 lety +3

    sir thank you so very much 😃♥️

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

    love you bro!

  • @rosgamer639
    @rosgamer639 Před 2 lety

    Thank You very much bro.

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

    11:30
    let room1 = 23;
    let room2 = 'Sam';
    let stu = true;
    if((room1 == 23 || room2 == 'Sam')&& stu ){
    console.log('Printed all terms')
    }
    else{
    console.log('Not Printed');
    }

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

    harry bhai, one short advice if new audience or new programmer are viewing this video, please pause and ask to take notes or make digital notes otherwise its seems that audience will learn JS by just watching the tutorial.

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

    Great video🎺🎺🎺

  • @samuelfrank1369
    @samuelfrank1369 Před rokem

    Thanks a lot Bhaiyaa

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

    you are coding master!!!):):-

  • @sushilprajapati2234
    @sushilprajapati2234 Před 4 lety +3

    perfect explanation of if else and switch ..

  • @rajbannasa7662
    @rajbannasa7662 Před 3 lety

    thank you so much sir

  • @syedaanam9811
    @syedaanam9811 Před 2 lety

    zabardast tutorials

  • @facticinfo18
    @facticinfo18 Před 2 lety

    Thanks bro ♥️

  • @msbasera
    @msbasera Před 2 lety

    Thank you bhai ❤️

  • @edgbaston149
    @edgbaston149 Před 3 lety

    Thank you Harry bhaiyya

  • @mrsmile4528
    @mrsmile4528 Před 9 měsíci

    Thanks bro❤❤

  • @ayushtrivedi1513
    @ayushtrivedi1513 Před 3 lety +6

    const a=12;
    const b=12;
    const c=12;
    if(a==b && a==c && b==c ){
    console.log('equivalent triangle');
    }
    if(a==b ){
    console.log('isosceles triangle');
    }
    else {
    console.log(' scalene triangle');
    }

    • @aavezshaikh143
      @aavezshaikh143 Před 2 lety

      Iska O/P isoceles triangle ainga na ?

    • @NeerajVermaGPS
      @NeerajVermaGPS Před rokem

      @@aavezshaikh143 equivalent and isosceles dono aaenge.

  • @HistoryDNA3
    @HistoryDNA3 Před 3 lety

    आप इतना सारा फ्री में सिखा रहे है मेरे पास पैसे नहीं आपको देने को लेकिन मै आपके ads पर क्लिक नहीं करता हूँ ताकि आपको थोडा revenue generate हो सके
    love you harry bhai for this type learning for free
    proud to be an indian
    jai hind jai bharat

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

    Thanks

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

    harry bhai, Hacktoberfest ke bare me btane ke liye shukriya
    mai class 9 me padti hun aur maine T shirt jeet li.....................................................................

  • @humanbeing9106
    @humanbeing9106 Před 5 lety

    nice harry bhiya

  • @moviehook9981
    @moviehook9981 Před rokem

    Thanx Harry

  • @cofeealsonof7314
    @cofeealsonof7314 Před 3 lety

    best hai Sir jee

  • @daniyalarif7516
    @daniyalarif7516 Před 2 lety

    Lub you😍😍😍

  • @RediculeSoonbeDEADRAT
    @RediculeSoonbeDEADRAT Před 2 lety

    Thnx

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

    Harry bhai makes everything easy..😊

  • @abinashchoudhury8310
    @abinashchoudhury8310 Před 3 lety

    Thank u for these videos Harry bhai....Great videos and Great contents

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

    Data structure and algorithm plzzzzzzz

  • @bhupinderjitsinghgahla2829

    good sir ji

  • @I_m_Samar
    @I_m_Samar Před 3 lety

    thank you so much harry bhai for your hardwork

  • @Iamyattu
    @Iamyattu Před 3 lety

    Thank u so much bhaiya. Best channel to learn.

  • @manantyagi6905
    @manantyagi6905 Před 3 lety

    love to learn

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

    💯💯💯

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

    Amazing tutorial sir

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

    Harry bhai ek playlist "code with SEO "ho jaye please sir

  • @pushanchandresh4107
    @pushanchandresh4107 Před 2 lety

    var a=10
    var b =15
    console.log(ab);
    asked in interview , Do this simple ques also

  • @creationofislam
    @creationofislam Před 5 lety

    Hello Harry bhai please shall and bash language ke upar Ek video bana do...

  • @vaibhavpatil4610
    @vaibhavpatil4610 Před 3 lety

    harry bhai agar possible ho to sql ki bhi playlist banao

  • @RohanDasRD
    @RohanDasRD Před 5 lety +30

    Js is so easy

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

    I am yours big fan 💕💗💛💕💛💞🧡💕🧡💞🧡💕💛🧡💚🧡💕🧡and 30ty liker

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

    if anyone is having problem in switch then dont worry it is just for ur knowledge u will often use if else

  • @bugsfounder
    @bugsfounder Před 3 lety

    11:41
    age = 15;
    if (age == 15 || age < 15) {
    console.log('you age not aligible')
    } else if (age == 100 || age > 100) {
    console.log('your are outdated God is waiting for you')
    } else {
    console.log('You are aligible')
    }

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

    Congratulations on 1 million subscribers

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

    Bhai operators ke baare me to btaya ni apne is poore course me?

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

    From where did you learn java script ?

  • @LuckyGupta-zu2oi
    @LuckyGupta-zu2oi Před 4 lety

    Plz tell me in details about form validation

  • @princesukhala7106
    @princesukhala7106 Před 2 lety

    Done

  • @pasitopasito1967
    @pasitopasito1967 Před 3 lety

    😊😊

  • @JobsAddaa
    @JobsAddaa Před 5 lety

    sir please django ka social app bna dijiye, ek video mai

  • @suryanshkumar4062
    @suryanshkumar4062 Před 2 lety

    I have made default using template literals

  • @chiragpipaliya9316
    @chiragpipaliya9316 Před 5 lety

    Bhai plz es6-7 bhi cover krna course me and Dom bhi plz

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

    mujhe be ek Dil bro ♥️♥️♥️♥️♥️

  • @bhupinderjitsinghgahla2829

    great sir ji.

  • @gabbarsingh6562
    @gabbarsingh6562 Před 2 lety

    04:50 - ===
    08:41 - typeof variable

  • @kk-uw3wf
    @kk-uw3wf Před 3 lety

    Harry bhai default me bhi break hota hai kya?

  • @princesukhala7106
    @princesukhala7106 Před 2 lety

    Done done again

  • @khushaggarwal2411
    @khushaggarwal2411 Před 2 lety

    var age = 8;
    switch (age){
    case 18:
    document.write('You are 18');
    break;
    case 28:
    document.write('You are 28');
    break;
    case 38:
    document.write('You are 38');
    break;
    default:
    document.write('Age unknown');
    break;

  • @random2059
    @random2059 Před rokem

    some one please reply : there are situations we need to use multiple if (no else if ) and one else , in that condition to execute else condition all the if condition must be false at once

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

    Sir data structure aur algorithm start kab karenge...

  • @amitpandharikar2377
    @amitpandharikar2377 Před 3 lety

    var ex=34
    if(typeof ex !== "undefined" && ex>31 &&ex

  • @rahulsk8897
    @rahulsk8897 Před 2 lety

    If else and switch condition work same?

  • @abscdbcdef1440
    @abscdbcdef1440 Před 4 lety

    Bhai function in JavaScript pe video banao

  • @sagarjaideepdeshmukh
    @sagarjaideepdeshmukh Před 3 lety

    thank you harry almighty

  • @arunavapal3910
    @arunavapal3910 Před 2 lety

    if(testdrive && age=60)
    {
    console.log("you cannot drive");
    }
    else if(testdrive && 18

  • @krishnakamlesh8297
    @krishnakamlesh8297 Před 2 lety

    Bro aapne es video me comparison operation ka use Kiya hai lekin es series me esse pehle comparison operator ke baare me bataya nahi hai

  • @CoralAbhi
    @CoralAbhi Před 3 lety

    Awesome 🔥

  • @muhammadshahzaib3265
    @muhammadshahzaib3265 Před rokem

    Harry Bhai ye ap console.log me sub print kar rhe ho ye sb webpage pe kese print Hoga ?

  • @nehanarkhede3362
    @nehanarkhede3362 Před 2 lety

    If we want to use propmt for age

  • @thesingsational7943
    @thesingsational7943 Před 2 lety

    11:29
    const marks_1 = 92;
    const marks_2 = 75;
    const marks_3 = 88;
    if (marks_1 && marks_2 && marks_3 >=80) {
    console.log("Your result is excellent");
    }
    else if ((marks_1 && marks_2) || marks_3 >=80){ console.log("Your mark_1 & mark_2 is good");
    }
    else if (marks_1 || (marks_2 && marks_3 >=80)){
    console.log("Your mark_2 & mark_3 is good");
    }
    else {
    console.log("Your result is poor!!!");
    }
    //output
    Your result is excellent

  • @shadowassasin1823
    @shadowassasin1823 Před 2 lety

    doing this after learning css

  • @rajabhishek4973
    @rajabhishek4973 Před 5 lety

    awosem video sir

  • @nilamrakholiya5650
    @nilamrakholiya5650 Před 2 lety

    I was thinking that I know 'if else " and so can I skip this video, but I have watched and as I expect I learn so many things. you are amazing.☺

  • @kk-uw3wf
    @kk-uw3wf Před 3 lety

    Harry bhai switch program me default ke bad break kiw lagay hai

  • @himanshushekhar9275
    @himanshushekhar9275 Před rokem

    😌

  • @swaraj1396
    @swaraj1396 Před 3 lety

    noicee

  • @chiragtanksali873
    @chiragtanksali873 Před 3 lety

    Thankyou Harry Sir ❤❤

  • @DaljitSingh-wq9kj
    @DaljitSingh-wq9kj Před 3 lety

    Harry bhaii.... JavaScript k notes kaha milege ... Handwritten.... Plzzz inform me

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

    1 million subscribe from myself

  • @NarutoUzumaki-fy6fo
    @NarutoUzumaki-fy6fo Před 2 lety

    14:11 main kauns extension use kiya hain

  • @engineerbhai7642
    @engineerbhai7642 Před 5 lety

    Thank you for providing free vedio. You are requested to provide chatsheet of all the vedios on nominal payment.

  • @sauravbikramkadariya1936

    if else condition is similar to C Language.

  • @smitaopxp7517
    @smitaopxp7517 Před 4 lety

    let age = 15
    let weight = 65
    if(age>18 && weight18 && weight

  • @aryansonone7751
    @aryansonone7751 Před 3 lety

    Harry Sir how are you removing the intend, means what is the shortcut for this ??

  • @ProgrammingNCodingWithHarsh

    I would like to see you on the sundeep maheshwari stage ....

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

    Your qualifications plz

    • @geeli_puppy_.
      @geeli_puppy_. Před 3 lety +1

      he is an nasa certified HTML hacker and he is from iit kharagpur

  • @nathulalkumar5804
    @nathulalkumar5804 Před 2 lety

    ek dikkat he esse sikh toh jaenge lekin jo agar website ya apps baane me thodi dikkat dsega jese ye kiss tarah se estemal kare

  • @gautamsharma9897
    @gautamsharma9897 Před 5 lety +6

    Could you make a video on adding cut scenes in pygame

  • @a.k.rprogrammer3784
    @a.k.rprogrammer3784 Před 2 lety

    const vari = "undefined"
    if(typeof vari === 'undefined'){
    console.log('Vari is defined')
    }
    else{
    console.log("Vari is not defined")
    }
    why the output is coming vari is not defined please explain anyone?

  • @Iqbalkhan-tt4su
    @Iqbalkhan-tt4su Před 5 lety

    Hello sir I m iqbal katni mp
    Sir vs code me Jarvis project try kar rha hu lakin usme muje kai sari dikate aa rhi h usme voice nhi chal rhi h
    Please help me
    Ky app ka contect no mujhe mil sakta h

  • @monisingh6042
    @monisingh6042 Před 3 lety

    Can you guys tell me ..How to indent multiline through keyboard?

    • @harshsinha9391
      @harshsinha9391 Před 2 lety

      If you are using VS code then you can achieve this by pressing the alt key and wherever you will tap the mouse button along with the alt key, the cursor will appear in all those spots and you can write simultaneously at all those spots.

  • @jiveshbobde88
    @jiveshbobde88 Před 3 lety

    How to use if condition in html without using js please help me

    • @hargunbeersingh8918
      @hargunbeersingh8918 Před 3 lety

      You cannot, you will have to use some templating engine like pug or ejs