JavaScript if else (tutorial)

  Рет қаралды 347,367

Programming with Mosh

Programming with Mosh

Күн бұрын

Пікірлер: 102
@Memoriasxvida
@Memoriasxvida 3 жыл бұрын
You made this seem so simple. My head hurts from trying to understand it and you just saved me a headache. Thank you!
@brikozub
@brikozub 4 жыл бұрын
That use of notes being interpreted into the structure of the language was incredibly helpful.
@codewithsehran
@codewithsehran 6 ай бұрын
this guy,, i started my coding journey from teaching of this guy take love ❤
@jhoanmonsalve1302
@jhoanmonsalve1302 13 күн бұрын
I’ve watched many KZbin channels but so far yours is one of the easiest ones to understand ❤❤
@funhole26
@funhole26 2 жыл бұрын
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 Жыл бұрын
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 6 ай бұрын
@@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!
@idorenyinbenson1161
@idorenyinbenson1161 Жыл бұрын
Mosh, you have also played a vital role in my Frontend Tech Career. Thanks
@burtcocain1986
@burtcocain1986 9 ай бұрын
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.
@Nexils
@Nexils 2 жыл бұрын
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.
@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🎉
@vardar2191
@vardar2191 4 жыл бұрын
I payed for udemy which there were a lot of facts that I couldnt get, but thiss channel helps me even better. gush
@StrayFei
@StrayFei 4 жыл бұрын
Yanderedev must have watched this video
@Diddydoit88
@Diddydoit88 2 жыл бұрын
what is that
@UnMisanthropeCynique
@UnMisanthropeCynique Жыл бұрын
If he sees this comment 💀💀💀💀💀
@nissangamba
@nissangamba 3 жыл бұрын
Wow. you made it so simple. thanks a lot.
@Tom-xy9gb
@Tom-xy9gb 3 жыл бұрын
I was having trouble understanding this, but thank god for youtube
@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
@aminimani5649
@aminimani5649 5 жыл бұрын
hey mosh there is an empty field in your courses for html css , We love you man , you are awesome
@ayMillmusic
@ayMillmusic 11 ай бұрын
Great video! Thank you! How come we don't need the curly brazes though?
@htlkmsi2775
@htlkmsi2775 7 ай бұрын
Simple and short. U re awesome!😁
@TNCG
@TNCG 4 жыл бұрын
I needed this video so bad! Helped so much!
@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?
@yasineapdillaahi2731
@yasineapdillaahi2731 2 жыл бұрын
thanks 😊 Mr mosh very explained explained and understandable 👏
@nour3660
@nour3660 3 жыл бұрын
JavaScript is just concepts, if you understand the concepts and logic behind lines of code, you will master JavaScript easily
@Yancyik
@Yancyik 2 жыл бұрын
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
@chinmayp5859
@chinmayp5859 3 жыл бұрын
Thank You So much Mosh
@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.
@phetervincentdelmundo2274
@phetervincentdelmundo2274 2 жыл бұрын
thank you so much, I need this.
@matthewl7540
@matthewl7540 2 жыл бұрын
You are amazing! Very well explained !
@rajibdesai
@rajibdesai 2 жыл бұрын
awesome..... from bangladesh...tnx
@asifali-mw6cy
@asifali-mw6cy 2 жыл бұрын
great explanation
@daddySAL
@daddySAL Жыл бұрын
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
@mystickid1
@mystickid1 6 жыл бұрын
Does Javascript have a new spec where you can omit the curly braces now for code blocks? Never saw this before.
@Paytolose174
@Paytolose174 3 жыл бұрын
Welcome to the future oldman
@shwetavankawala2253
@shwetavankawala2253 Жыл бұрын
We can 😂
@stacyhackney6100
@stacyhackney6100 Жыл бұрын
Thank you.
@amjadali-cs3si
@amjadali-cs3si 3 жыл бұрын
sir which exyention use it you in visual code your code is osm to write
@pabloernest5974
@pabloernest5974 5 ай бұрын
Thank u so much
@abhiramvegesna7690
@abhiramvegesna7690 4 жыл бұрын
Thankk you so much it helped me alot
@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....
@sunitaraman1045
@sunitaraman1045 2 жыл бұрын
its JavaScript
@noeliaflorenino4478
@noeliaflorenino4478 2 жыл бұрын
you made it look really easy thank you.
@isaacpalacios8921
@isaacpalacios8921 2 жыл бұрын
Wonder what is your Visual Studio Code theme
@ManBehindTheBurger
@ManBehindTheBurger 2 жыл бұрын
This guy made college so much easier
@Mari741s
@Mari741s Жыл бұрын
How do your connect this code to a text? Like.. if you want to change a text from weekday to weekday?
@Happiest_Bat
@Happiest_Bat Жыл бұрын
how do you get that white console that you have on the right side of your screen?
@ktembhare5978
@ktembhare5978 3 жыл бұрын
Great course I love it
@williamhastings4491
@williamhastings4491 3 жыл бұрын
I am solely interested in using Java Script with Adobe CD PRO is this the right platform.?
@OmerMD
@OmerMD 3 жыл бұрын
Thanks buddy
@syntychemanda846
@syntychemanda846 3 жыл бұрын
Thanks!
@chevvvv
@chevvvv 2 жыл бұрын
why isnt the complete course link working?
@carolinach9114
@carolinach9114 2 жыл бұрын
thanks friend !!
@joshualerman412
@joshualerman412 4 жыл бұрын
the 18 is army time correct ? which represents 6?
@georgegeorgio70
@georgegeorgio70 4 жыл бұрын
4:35 ilse ef :D
@ayac6495
@ayac6495 Жыл бұрын
link to the last section of operators ?
@sudiptasharma3005
@sudiptasharma3005 4 жыл бұрын
The link of the complete course isn't opening.
@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
@tkimdev
@tkimdev 4 жыл бұрын
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
@samuelb.5153
@samuelb.5153 3 жыл бұрын
is this possible to setup a caracters chain as a condition? ("if x = chair...")
@rush2325
@rush2325 3 жыл бұрын
If you set the char. chain as a number like so: [char chain] == [insert number here] ... then yes.
@mdhamzabiswas5295
@mdhamzabiswas5295 11 ай бұрын
very nice video
@dhanunjay9035
@dhanunjay9035 9 ай бұрын
Why did you take let hour =10
@abhilashasahay5490
@abhilashasahay5490 2 жыл бұрын
Can you pls do one in Windows OS
@akbarhosenpersonal
@akbarhosenpersonal 6 ай бұрын
Please help..🚫🚫 need the next video link about the switch statement...
@reecedowns3090
@reecedowns3090 3 жыл бұрын
How do you you save and open this?
@rahulchauhan496
@rahulchauhan496 6 жыл бұрын
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...
@grifferkay9253
@grifferkay9253 4 жыл бұрын
//you try this also let hour = parseInt(prompt("Enter time")) if(hour >= 6 && hour = 12 && hour = 18 && hour
@nickrkr
@nickrkr Жыл бұрын
This may sound silly, but can anyone help me understand why the variable was set to 10?
@mastersugu
@mastersugu Жыл бұрын
when you change it based on the time it says"good morning" because 10am it is.
@indireliniköle
@indireliniköle 4 жыл бұрын
This is how YandereDev coded Yandere Simulator
@user-ed6go6xl8x
@user-ed6go6xl8x 3 жыл бұрын
I don't get it
@indireliniköle
@indireliniköle 3 жыл бұрын
@@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 3 жыл бұрын
@@indireliniköle oh ew. Thanks for explaining
@indireliniköle
@indireliniköle 3 жыл бұрын
@@user-ed6go6xl8x No problem
@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?
@nrgking1667
@nrgking1667 2 жыл бұрын
omg never mind i got it
@ralphsevilla3208
@ralphsevilla3208 4 жыл бұрын
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 4 жыл бұрын
just use a 24 hr clock time or declare your variables with 'am' and 'pm'
@bulaloitech
@bulaloitech Жыл бұрын
Python but longer syntax
@Siamxel
@Siamxel 3 жыл бұрын
Try- let hour = 27;
@fixtechtv
@fixtechtv 11 ай бұрын
Why. Or isn't working. ||
@12KTOYOTA
@12KTOYOTA 9 ай бұрын
ctrl + F "yandere"
@Moviesshapeminds
@Moviesshapeminds 4 жыл бұрын
easy to learn awesome
@annabelleklein2525
@annabelleklein2525 4 жыл бұрын
when i put else if it says not valid wtff
@emmanuelrojasmusica
@emmanuelrojasmusica 4 жыл бұрын
Got the solution if u want let me know
@User.youtubeQueen
@User.youtubeQueen 6 ай бұрын
Like
@omarnaser8291
@omarnaser8291 Жыл бұрын
this was Terrible example
@yousufisalm4165
@yousufisalm4165 2 жыл бұрын
console.log("So Good method");
JavaScript Loops
6:49
Programming with Mosh
Рет қаралды 426 М.
JavaScript v.2.0. Ветвление If, else, switch
22:40
WebDev с нуля. Канал Алекса Лущенко
Рет қаралды 69 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,7 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 122 МЛН
She's very CREATIVE💡💦 #camping #survival #bushcraft #outdoors #lifehack
00:26
Object-oriented Programming in JavaScript: Made Super Simple | Mosh
1:02:49
Programming with Mosh
Рет қаралды 1,9 МЛН
CONDITIONAL STATEMENTS (SIMPLE IF,IF-ELSE,ELSE-IF LADDER) IN JAVA SCRIPT
21:49
Sundeep Saradhi Kanthety
Рет қаралды 64 М.
All The JavaScript You Need To Know For React
28:00
PedroTech
Рет қаралды 633 М.
If statements in JavaScript are easy 🤔
15:58
Bro Code
Рет қаралды 38 М.
JavaScript Tutorial for Beginners [JS Crash Course 2024]
1:37:14
TechWorld with Nana
Рет қаралды 209 М.
Coding Was HARD Until I Learned These 5 Things...
8:34
Elsa Scola
Рет қаралды 569 М.
😜 #aminkavitaminka #aminokka #аминкавитаминка
00:14
Аминка Витаминка
Рет қаралды 1,7 МЛН