JavaScript if else (tutorial)

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

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

  • @Memoriasxvida
    @Memoriasxvida 3 года назад +33

    You made this seem so simple. My head hurts from trying to understand it and you just saved me a headache. Thank you!

  • @codewithsehran
    @codewithsehran 8 месяцев назад +4

    this guy,,
    i started my coding journey from teaching of this guy take love ❤

  • @brikozub
    @brikozub 4 года назад +17

    That use of notes being interpreted into the structure of the language was incredibly helpful.

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

    Mosh, you have also played a vital role in my Frontend Tech Career.
    Thanks

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

    I'm doing theodinproject and this was a good supplemental video to the conditional statements section in foundations. I also appreciated how you encouraged everyone to write the other two statements. Thanks.

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

      I'm exactly on that same lesson in TOP and my brain hurt from it being so text heavy hahaha good luck on your learning journey!

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

      @@tristantrillo6239 @funhole26 how have you guys been doing? just reached that part myself

    • @Anti-CitizenOne
      @Anti-CitizenOne 8 месяцев назад

      @@javierleduc9628 I know this is a late reply but I just reached that part of the project myself! The landing page was a blast and a good test of my skills up to this point. This video helped me out a lot as well. I hope everyone is doing well!

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

    I’ve watched many RUclips channels but so far yours is one of the easiest ones to understand ❤❤

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

    Brilliant! Doing prep for a bootcamp and they're asking me to do greetings at various times in various countries. Your vid has helped me get the solution, then simplify the solution. Onto Switch and Case now to pare it down further. Great vid.

  • @StrayFei
    @StrayFei 4 года назад +76

    Yanderedev must have watched this video

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

    I payed for udemy which there were a lot of facts that I couldnt get, but thiss channel helps me even better. gush

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

    Thank you so much for giving the little assignment in between so we can pause the video to try it ourselves. Really useful that you actually make me think for a little.

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

    Simple and short. U re awesome!😁

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

    Mosh, you have the best tutorials I have found so far. Ive been working through Javascript and the concepts seemed outside of my understanding, but you explain in such an approachable way, it makes it almost easy. Cheers to you, my friend

  • @nissangamba
    @nissangamba 3 года назад +3

    Wow. you made it so simple. thanks a lot.

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

    I am from non technical background but its really helpful video for me...thanks

  • @kalki-avatar
    @kalki-avatar Год назад

    I am German, and my english is not good. Before i saw an german explanation. I understand nothing😅 But your explain this very clear, and i understand all. Thank you very much🎉

  • @Tom-xy9gb
    @Tom-xy9gb 3 года назад

    I was having trouble understanding this, but thank god for youtube

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

    hey mosh there is an empty field in your courses for html css , We love you man , you are awesome

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

    I needed this video so bad! Helped so much!

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

    Great video! Thank you! How come we don't need the curly brazes though?

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

    awesome..... from bangladesh...tnx

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

    thanks 😊 Mr mosh very explained explained and understandable 👏

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

    Thank You So much Mosh

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

    You are amazing! Very well explained !

  • @asifali-mw6cy
    @asifali-mw6cy 2 года назад

    great explanation

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

    thank you so much, I need this.

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

    JavaScript is just concepts, if you understand the concepts and logic behind lines of code, you will master JavaScript easily

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

      help me man im goign insane

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

      would like to relate... I'm stuck in the concepts and logic behind the codes so it's really challenging

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

      @@kwamegyasi508 it takes practice bro, take your time, im not perfect in JavaScript either

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

      Coming from learning Python first(+a bit of C), learning JS is easy :) Maybe getting used to the syntax will take a while but except that, the programming logic is not different.

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

      @@jathebest2835 yes pretty much, obviously some people learn slower or faster than others but yeah it will be fast to learn if you know a similar programing language

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

    you made it look really easy thank you.

  • @mystickid1
    @mystickid1 6 лет назад +6

    Does Javascript have a new spec where you can omit the curly braces now for code blocks? Never saw this before.

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

    Great course I love it

  • @georgegeorgio70
    @georgegeorgio70 4 года назад +3

    4:35 ilse ef :D

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

    Thank you.

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

    This guy made college so much easier

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

    Thankk you so much it helped me alot

  • @pabloernest5974
    @pabloernest5974 7 месяцев назад

    Thank u so much

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

    Thanks buddy

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

    thanks friend !!

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

    Great explanation, thank you!! Except the part where you recommended to remove curly braces threw me off, I thought curly braces were good practice?

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

    very nice video

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

    Thanks!

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

    Mosh, is your internal video setting set to Dutch only? I don't have other option other than Dutch. Nonetheless, great video.

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

    how do you get that white console that you have on the right side of your screen?

  • @amjadali-cs3si
    @amjadali-cs3si 4 года назад

    sir which exyention use it you in visual code your code is osm to write

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

    thank you for the explanation, but I have a question why did you put 18 ? instead of 6 pm and for the first condition why didn't you put am or pm

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

    Wonder what is your Visual Studio Code theme

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

    why isnt the complete course link working?

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

    which programming language you are using? can you name it please? Thank you very much for the videos it helps a lot....

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

    The link of the complete course isn't opening.

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

    link to the last section of operators ?

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

    How do your connect this code to a text? Like.. if you want to change a text from weekday to weekday?

  • @indireliniköle
    @indireliniköle 4 года назад +10

    This is how YandereDev coded Yandere Simulator

    • @user-ed6go6xl8x
      @user-ed6go6xl8x 4 года назад

      I don't get it

    • @indireliniköle
      @indireliniköle 4 года назад +1

      @@user-ed6go6xl8x He codes like else if else if else if else if and calls people bad coders, he also lies about working on his game 6 hours a day

    • @user-ed6go6xl8x
      @user-ed6go6xl8x 4 года назад

      @@indireliniköle oh ew. Thanks for explaining

    • @indireliniköle
      @indireliniköle 4 года назад

      @@user-ed6go6xl8x No problem

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

    I am solely interested in using Java Script with Adobe CD PRO is this the right platform.?

  • @samuelb.5153
    @samuelb.5153 3 года назад +2

    is this possible to setup a caracters chain as a condition? ("if x = chair...")

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

      If you set the char. chain as a number like so:
      [char chain] == [insert number here]
      ... then yes.

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

    easy to learn awesome

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

    Sir how to create a chatbot using HTML and js...?? Sir I think its possible.. Using if else...
    Create 1st case and the answer and the other case and answer...

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

    Is there a way to add other statement to an if like python or c++
    Example, statement and statement, statement or statement

  • @vijaybharathi.s3524
    @vijaybharathi.s3524 Год назад

    In else statement didn't used of curly braces

  • @akbarhosenpersonal
    @akbarhosenpersonal 7 месяцев назад

    Please help..🚫🚫 need the next video link about the switch statement...

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

    How do you you save and open this?

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

    the 18 is army time correct ? which represents 6?

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

    so I don't need curley braces? what's the point of it then?

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

      1:17
      for multiple statements in a condition

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

    Can you pls do one in Windows OS

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

    //you try this also
    let hour = parseInt(prompt("Enter time"))
    if(hour >= 6 && hour = 12 && hour = 18 && hour

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

    Why did you take let hour =10

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

    wait what when i do this on replit nothing shows up on my screen after i code it. Everytime i try to code i keep on getting Failed to load resource: the server responded with a status of 404 () when i look at developer tools what does this mean?

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

    This may sound silly, but can anyone help me understand why the variable was set to 10?

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

      when you change it based on the time it says"good morning" because 10am it is.

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

    how do i make it go in a 24 hour clock...cause when i made mines it was 7pm, and the code understood anything from 6 - 12 it will say Good morning.....But it is suppose to say Good Evening

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

      just use a 24 hr clock time or declare your variables with 'am' and 'pm'

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

    Python but longer syntax

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

    Try-
    let hour = 27;

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

    ctrl + F
    "yandere"

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

    Why. Or isn't working. ||

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

    when i put else if it says not valid wtff

  • @User.youtubeQueen
    @User.youtubeQueen 8 месяцев назад

    Like

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

    this was Terrible example

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

    console.log("So Good method");