Javascript If Else Statements | Javascript Tutorial For Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • Check out my courses and become more creative!
    developedbyed.com
    Javascript If Else Statements | Javascript Tutorial For Beginners
    In this video series we are going to learn modern javascript from scratch. This video is recommended for anyone wanting to learn javascript the modern way with ES2015. No previous programming knowledge is required, so this video series will help you learn javascript as your first programming language.
    We will cover the basic of if statements, if else and else statements in javascript. How to use the different types of operators in our if statement.
    Things covered in this video:
    How to create an if, else statement in javascript.
    When to use == or ===.
    The && operator and || operator.
    📔 Materials used in this video:
    VSCode: code.visualstu...
    🛴 Follow me on:
    Twitter: / deved94
    Github: github.com/Dev...

ความคิดเห็น • 68

  • @yasazaheen7887
    @yasazaheen7887 4 ปีที่แล้ว +66

    I love how he explains everything in a super chilled mood, even complex stuff sounds super easy.

    • @scribe_8733
      @scribe_8733 4 ปีที่แล้ว +3

      Super chilled, super simplistic, super vaping lol =) love the examples too...

  • @HostDotPromo
    @HostDotPromo 5 ปีที่แล้ว +30

    If you love javascript then show this guy some else exit this video!

  • @CreativeSequence
    @CreativeSequence 5 ปีที่แล้ว +16

    The simple way to explain == and === is when we use == JavaScript is only checks that name and value is equal or not but when we use === JavaScript checks both value and type so the simple is that == is used to check the value and === is used to check both value and type

    • @RabiRicky2007
      @RabiRicky2007 3 ปีที่แล้ว +1

      That's a good explanation

  • @felixvieira290
    @felixvieira290 5 ปีที่แล้ว +12

    thanks bro
    and hope you have a safe flight back to your country where the internet is better :)

  • @giveemhellkid3s
    @giveemhellkid3s 5 ปีที่แล้ว +9

    Dude I love your channel, Im getting more out of your channel than I do in class. Big ups to you my friend!

  • @mirandamandarin7028
    @mirandamandarin7028 2 ปีที่แล้ว +5

    Never stop making your tutorials. You are the only one who can explain these complex things in a way i ACTUALLY understand :)

  • @naveedasgari8415
    @naveedasgari8415 4 ปีที่แล้ว +4

    God damn it. You are such a great teacher. It's amazing how much i learnt from you

  • @edvin5300
    @edvin5300 5 ปีที่แล้ว +2

    const myName = ' Edwin';
    const yourName = ' Edwin';
    if(myName === yourName){
    console.log(' Greeting from Montenegro ! ')
    }

  • @dilanmeegodavithana4924
    @dilanmeegodavithana4924 5 ปีที่แล้ว +7

    you are my JS guru

  • @AmericanCube
    @AmericanCube ปีที่แล้ว +1

    your tutorials are so good! you just earned a sub😁

  • @VenomTheChosenOne
    @VenomTheChosenOne 3 ปีที่แล้ว +3

    Best TH-cam tutorials my guy. The way you explain these things literally made my life and 100's of other lives easier to understand the language and the syntax. Excited to learn React after this tutorial series.

  • @tronganhnguyenthanh1157
    @tronganhnguyenthanh1157 4 ปีที่แล้ว +2

    Hi Edwin.I'm watching your Javascript tutorial and I think that you should give us more exercises after your lectures so that we can get them clearly in real world project.

  • @mariantdm
    @mariantdm 4 ปีที่แล้ว +3

    8:07
    How can I convert string "age" to a number?
    Thank you.

    • @arx2796
      @arx2796 4 ปีที่แล้ว +1

      Its a number only @Marian TDM
      if you want to make a string then
      const age = "five";
      console.log(age);

  • @tatianajohnson946
    @tatianajohnson946 3 ปีที่แล้ว +1

    This helped me under if else so much better. I'm literally coding and not understanding what I'm doing on that part. Thank you for this!

  • @ousscinematic8444
    @ousscinematic8444 4 ปีที่แล้ว +1

    Woow woow .. i really like the way you explain the trickiest stuffs with a funny way until you make it simple

  • @ashwinkhatiwada9350
    @ashwinkhatiwada9350 4 ปีที่แล้ว +2

    1:42 From W3 School

  • @adrian8729
    @adrian8729 3 ปีที่แล้ว +1

    I recommend watching this video!

  • @nguyenchau6110
    @nguyenchau6110 4 ปีที่แล้ว +2

    I can see u close the 3wschool tab :))

  • @jamesw7223
    @jamesw7223 5 ปีที่แล้ว +1

    Shout out to the trucks wanting to learn JavaScript! Haha

  • @CyberWaddo
    @CyberWaddo 3 ปีที่แล้ว

    25,878 views But 843 Likes LOL :-/

  • @estherokiki5894
    @estherokiki5894 ปีที่แล้ว

    Thanks you so much for this video🥺❤️❤️

  • @FootballMore
    @FootballMore 3 ปีที่แล้ว

    I see From Bangladesh

  • @bharath-bk1ks
    @bharath-bk1ks 3 ปีที่แล้ว

    why dont you try if(18

  • @dayoneshemuyl9464
    @dayoneshemuyl9464 4 ปีที่แล้ว

    I don't understand why it was necessary to add the const = 20... What was it's purpose? You were only dealing with >

  • @ABreezingWind
    @ABreezingWind 2 ปีที่แล้ว

    Truck🤣🤣 habibi i was focusing with you the same as if i was there with you that sarcasm of the truck, i love you man no homo haha, thanks for the classes too keep it up, you are beautiful and happy from within and your energy is touching.❤️❤️❤️

  • @kristiangonzalez1108
    @kristiangonzalez1108 ปีที่แล้ว

    You are amazing!!! thanks for the explaination, so easy to understand, worth deffinetly my time :D

  • @vincenzoriwu2998
    @vincenzoriwu2998 2 ปีที่แล้ว

    Thank you a lot for your explanation its very clear and easy to understand, what I would like to understand is how can I implement this if condition on my button in html? I mean for example I want that once I click mybutton it pop up a window say "how old are you?" and then if you put 19 it says nice you are good to go and you enter otherwise you cannot enter. ? Thank you in advance :3

  • @francislambert5189
    @francislambert5189 4 ปีที่แล้ว

    Good Morning in Germany...You are in Germany, right? Cool...Love this video. Peacd :)

  • @itsali654
    @itsali654 2 ปีที่แล้ว

    For consolelog o u type it or it’s not needed to type

  • @easyeli728
    @easyeli728 2 ปีที่แล้ว

    Thank you my gorgeous friend

  • @justb3m184
    @justb3m184 4 ปีที่แล้ว

    Thankyou. I'm gonna apply for certification but I don't know how to send money using paypal. Sad.

  • @nekopitou
    @nekopitou 3 ปีที่แล้ว

    so it's just like if function on excel, except it's more advanceed

  • @codelyslearning
    @codelyslearning ปีที่แล้ว

    Love this video, I think I’ve watched it four times.

  • @newicon6507
    @newicon6507 3 ปีที่แล้ว

    everyone says he is good at teaching, however he never mentions what code is contained in the html file. BTW I did exactly all he said, and got nothing.

  • @Buttaz1977
    @Buttaz1977 2 ปีที่แล้ว

    Best Tutorial I've watched next to Messor. Awesome delivery

  • @mtriptruffle6345
    @mtriptruffle6345 3 ปีที่แล้ว

    My visual studio code doesnt display the javascript code in colors console.log is white how do i fix this

  • @abdelrhmanahmed5764
    @abdelrhmanahmed5764 5 ปีที่แล้ว +1

    thank you

  • @foo2hp
    @foo2hp 3 ปีที่แล้ว

    " | " this is vertical bar.

  • @hasiibali2513
    @hasiibali2513 3 ปีที่แล้ว

    i call it ( | ) Pipe character.

  • @Ttozyy
    @Ttozyy ปีที่แล้ว

    THANK YOUUU SOO MUCH!!!!

  • @Alan-vz9il
    @Alan-vz9il 3 ปีที่แล้ว

    funny how you were doing this just before the pandamic

  • @ryanmccarthy406
    @ryanmccarthy406 3 ปีที่แล้ว

    what does dice mean

  • @emanfaisal-du3dh
    @emanfaisal-du3dh 3 หลายเดือนก่อน

    good job bro

  • @PrestigeAura
    @PrestigeAura 9 หลายเดือนก่อน

    vaping website 💀

  • @omarbouassida
    @omarbouassida 3 ปีที่แล้ว

    thanx,but please how to write not in javascript

  • @Abinesh17
    @Abinesh17 2 ปีที่แล้ว

    Vanakam da mapla Tamilnadu la irudhu ♥️

  • @alexvech
    @alexvech 5 ปีที่แล้ว +1

  • @chikennuhgget30
    @chikennuhgget30 2 ปีที่แล้ว

    Nice

  • @Showbear1986
    @Showbear1986 4 ปีที่แล้ว

    I think the right word for the || is "Double Pipes"

  • @wetham11
    @wetham11 4 ปีที่แล้ว

    my code is
    if (life = 0) {
    console.log("Game Over");
    }
    but it wont work no idea why ._. anyone know why?
    Edit:it also sets my var (life) to 0 :l

    • @kavitapanchal7993
      @kavitapanchal7993 4 ปีที่แล้ว

      Even I messed up like u, all u gotta do is use a (==) operator while laying out condition not just one(=).

    • @blacksteveirwin8451
      @blacksteveirwin8451 2 ปีที่แล้ว

      I think it goes
      const life = 100
      if (life == 0) {
      console.log(`Game over`);
      }
      not sure if that is right.

  • @rifatsalmanabir3352
    @rifatsalmanabir3352 5 ปีที่แล้ว

    Hey Ed what is the name of the intro and ending music?

  • @gurveersingh3570
    @gurveersingh3570 5 ปีที่แล้ว

    W3Schools..............nice bro, keep it up

  • @ahmedabbas_forweb5774
    @ahmedabbas_forweb5774 4 ปีที่แล้ว

    Thanks alot Dev Ed...

  • @Zelinity
    @Zelinity 4 ปีที่แล้ว

    what's the intro songg

  • @mariantdm
    @mariantdm 4 ปีที่แล้ว

    Thumbs up to the #truck
    5:18

  • @samsonbrody6032
    @samsonbrody6032 3 ปีที่แล้ว

    thank you!!

  • @madhusankar.s1817
    @madhusankar.s1817 3 ปีที่แล้ว

    good work dr

  • @arezoodarvishi9719
    @arezoodarvishi9719 4 ปีที่แล้ว

    thans alot

  • @CloutGenie
    @CloutGenie 5 ปีที่แล้ว

    LOVE THE LEARNING

  • @akirayagi5111
    @akirayagi5111 3 ปีที่แล้ว

    add you wrote "your" for "you"
    ..
    Bruh!