11: How to Create Conditions in JavaScript | Conditional Statements | JavaScript Tutorial

  Рет қаралды 89,013

Dani Krossing

Dani Krossing

Күн бұрын

Пікірлер: 89
@randerins
@randerins 3 жыл бұрын
Not only very useful and straight forward, but you clearly also have some empathy for beginners. Really appreciate that!
@omrwi
@omrwi Жыл бұрын
Four years later & still the best JS course on KZbin. Thanks a lot!
@Namuggah
@Namuggah 2 жыл бұрын
Hey Dani, I just wanted you to know that you have made my school so much better with these videos. Thank you so much. Sending you lots of love and light from Uganda 🇺🇬.
@velbalakrishnan956
@velbalakrishnan956 2 жыл бұрын
Excellent teaching. Thumbs Up for U bro.
@ararahrah1
@ararahrah1 3 жыл бұрын
I'm taking a bootcamp rn and I wish I found your page before starting. You have helped me understand things the bootcamp tried teaching. Thank you so much!
@DavidTheITGuy.
@DavidTheITGuy. 2 жыл бұрын
Wiz him one doesn't surely need AcampBoot!...
@Saladcreamboi
@Saladcreamboi 2 жыл бұрын
It's taken me ages to wrap my head around the fundamentals of JS. It's actually now sinking in with your playlists. Bare in mind I've never written a line of code in my life. Thank you so much!!!
@josephsamson412
@josephsamson412 Жыл бұрын
I have been following up your videos you are one of the outstanding instructor with the way you explain everything I love it, and length of the vid as well make's me wants to watch more ❤❤❤though it old vid when you understand it same as present and what is good it's good👍👍
@Benbenbenbenbenbenjamin
@Benbenbenbenbenbenjamin 6 жыл бұрын
Love the tutorials! Waiting patiently for the next one.
@rwilhelm23
@rwilhelm23 4 жыл бұрын
Not all heroes wear capes! You're brilliant! thank you so much for helping us simpletons.
@airdraagonstream5538
@airdraagonstream5538 3 жыл бұрын
Ah, I've finally have found how to type not eaqual correctly in JavaScript! Thank you so much. I haven't found other tutorials out there (video or written) that talk about it. One big like :)
@akashstores390
@akashstores390 3 жыл бұрын
Your accent is so clear to understand! I just started to learn from you... We will meet again in another Video Dani. You are amazing. Keep it up. Thank you!
@mexcalgt
@mexcalgt 4 жыл бұрын
Dude I am very thankful for your time invested on this videos it is great help and a very great way to learn.... Gracias totales!
@codenlighten54
@codenlighten54 4 жыл бұрын
Thanks. This has been my most difficult subject so far in javascript as I'm learning it.
@khushalrajput4538
@khushalrajput4538 4 жыл бұрын
JavaScript is pain in ass to learn 😂
@RadoHudran
@RadoHudran 2 жыл бұрын
Was looking for the "OR" statement and found your video. Thx a lot
@mosammatjinnatharakhandake9146
@mosammatjinnatharakhandake9146 2 жыл бұрын
One of the best tutorials of JavaScript very easy to understand the concept. And exercises provided are very good. Can you plz upload more projects for html, css and JavaScript
@sumiiluv
@sumiiluv Жыл бұрын
This video was so helpful. Thank you so much
@erfanm1206
@erfanm1206 3 жыл бұрын
wowwwwwwwwwww! you explain it very goooood, thank you so muchhhh!
@Asma-og4tx
@Asma-og4tx 2 жыл бұрын
This video was really helpful our course did not teach this so we had to find a video so I'm grateful for this :)
@secretoflife2676
@secretoflife2676 3 жыл бұрын
Mange tak Daniel! Denne lille video var en stor hjælp
@ebesquin
@ebesquin 4 жыл бұрын
Thank you so much Dani for your excellent tutorials
@neoTriny
@neoTriny 4 жыл бұрын
Good one, very clear, salute you boss
@amandadelongchamp3599
@amandadelongchamp3599 5 жыл бұрын
You're great teacher!
@Dadly
@Dadly 6 жыл бұрын
Awesome video!
@arnoldomondi7423
@arnoldomondi7423 6 жыл бұрын
hi, Daniel let me just say that 96% of what i know i got it from this page but i was kind of requesting if you can start on building actual projects it will go a long way and again just a suggeston
@rheaclements1193
@rheaclements1193 Жыл бұрын
I’m so new at this, your videos on html and css saved me! I wonder if someone with more experience can comment on the usefulness of this series, my classroom instructor said we should never use var. Is it still useful to watch this series to get the basics down?
@Dani_Krossing
@Dani_Krossing Жыл бұрын
I also get to “not using var” in this course here, so don’t worry about thinking it’s outdated or anything like that. 🙂 I only use var at the start of the course because I know most people know about it, and I wanna ease people into JavaScript as much as possible. 😊
@rheaclements1193
@rheaclements1193 Жыл бұрын
Ok perfect!
@dlyzei4722
@dlyzei4722 4 жыл бұрын
4:35 you can replace this && with a comma
@argenisaguilar9045
@argenisaguilar9045 4 жыл бұрын
Great!!...thank you very much..
@InnesHeppler
@InnesHeppler 6 жыл бұрын
very good - clearly explained
@Aishcream
@Aishcream 3 жыл бұрын
Woow the penny has just dropped! Thanks for the super clear explanation. I just have one question. So it is if () {} but when you did the gender age one, I noticed there was an additional { but not a closing one. do you use the to separate the if statements where you have more than one if statement as in this case? Hope you can help. Thanks again for this video :D
@BenHewart
@BenHewart 5 жыл бұрын
quick question..... with regards the if(age > 18) and if(gender == "male") could you not put them together in one if statement? so if(age >=18 && gender == "male") would this work also? I also didnt know you could put 2 if statements after one another? these videos are great!!
@BKofficer23
@BKofficer23 5 жыл бұрын
Ben, I think the following would work: if((age >=18) && (gender == "male"))
@BKofficer23
@BKofficer23 5 жыл бұрын
But I don't know.
@pleasedontsub9700
@pleasedontsub9700 6 жыл бұрын
what would I do if I wanted to both check the datatype and make sure a variable is greater or less than a number both at the same time. Great videos! very understandable!
@TheBest-sp3co
@TheBest-sp3co 4 жыл бұрын
Use this: =>=
@abumd.nayeemkhan1025
@abumd.nayeemkhan1025 4 жыл бұрын
very helpful video .
@Vishal-Diaries-9
@Vishal-Diaries-9 3 жыл бұрын
nice one
@vojka2973
@vojka2973 6 жыл бұрын
I'm pretty sure your book saver is up side down! LUL am I right ?? Great video btw! I was your subscriber since 10k
@user-or7ji5hv8y
@user-or7ji5hv8y 4 жыл бұрын
is case statements allowed in js?
@joyvideos1802
@joyvideos1802 5 жыл бұрын
Nice lesson
@mariaramirezr.4234
@mariaramirezr.4234 5 жыл бұрын
To write de pipe simbol in Windows: Alt + 1 2 4
@lolpantsification
@lolpantsification 4 жыл бұрын
Lol what? There's a key on your keyboard for it. lol
@DeepakRai-tf8un
@DeepakRai-tf8un 6 жыл бұрын
you are great sir
@whysoseriousjoker6727
@whysoseriousjoker6727 6 жыл бұрын
good job, keep it up
@poterealpopolomalaysia3540
@poterealpopolomalaysia3540 2 жыл бұрын
what if the var value is a text?
@randerins
@randerins 3 жыл бұрын
10:16 That video part could turn into a legendary meme
@fuzzydark1395
@fuzzydark1395 5 жыл бұрын
what's the difference between using two equal signs and using three equal signs?
@josepharenas8905
@josepharenas8905 5 жыл бұрын
1=="1" >> True 1==="1" >> False
@marcoelizondo1246
@marcoelizondo1246 5 жыл бұрын
Never use == Always use === because you want to ensure you are comparing the data types input. This 4:40 will trip you up immensely.
@thomaswaligora8470
@thomaswaligora8470 4 жыл бұрын
Thx!
@friedchicken5227
@friedchicken5227 4 жыл бұрын
Nice
@gladstonross12
@gladstonross12 6 жыл бұрын
just a note here guys.. the && operator could also be used to test both condition in the "if" statement ,, doing so would omit the need of the second if statement and you would get the same result. eg.. if (gender == "male" && age >= 18) { console.log(" *and you would log something here* ");}
@slapmyfunkybass
@slapmyfunkybass 6 жыл бұрын
Gladston Ross No, that wouldn’t work here because if either statement failed the code in it would never run. In the video he first checks if they’re male, then checks their age - that shouldn’t be combined into a && statement.
@epic_waffle2359
@epic_waffle2359 4 жыл бұрын
6:49 so you can say you just had a phone call from a salesman :)
@muramasa7537
@muramasa7537 6 жыл бұрын
I am learning more easily here ! But what is === again ?
@Dani_Krossing
@Dani_Krossing 6 жыл бұрын
It means "is the same as and same datatype". Awesome username btw!
@muramasa7537
@muramasa7537 6 жыл бұрын
mmtuts thanku
@francisbrix03
@francisbrix03 3 жыл бұрын
how come you're writing all of these with colors? how can I do that? I'm sorry. newbie here
@Dani_Krossing
@Dani_Krossing 3 жыл бұрын
I'm using a different Color Scheme, so don't worry about variables not turning green :)
@chrisbors527
@chrisbors527 6 жыл бұрын
can toy show how to do a beautiful sidebar with html and css??
@tahzeemvally9271
@tahzeemvally9271 Жыл бұрын
The if part you kinda confused me bcuz i didnt understand comparison operators 😭and statement
@angelinecaponpon9065
@angelinecaponpon9065 6 жыл бұрын
👌👌👌👌
@SecretDuck
@SecretDuck 6 жыл бұрын
3 SJWs disliked cos you said there's only 2 genders ;D By the way mmtuts, would you ever do a tutorial for BootStrap 4?
@awantomagaret7390
@awantomagaret7390 5 жыл бұрын
Check scrimba.com they have a free and easily to learn tutorial on bootstrap 4
@calibr0636
@calibr0636 5 жыл бұрын
SecretDuck I actually added another statement for the “other” gender just to make it fair so that if someone looks through my code (for some reason) without me knowing, they’re not going to get offended.
@JinKazama1993
@JinKazama1993 5 жыл бұрын
I am offended because he just assumed my species and my age! I identify as a Martian and I am -592 years old! /s
@ojface
@ojface 5 жыл бұрын
10 months later, this is still hilarious, was totally thinking the same thing!..LOL xD
@musicjunkie421
@musicjunkie421 6 жыл бұрын
MMTUTS >= GOAT
@sonnyl2915
@sonnyl2915 2 жыл бұрын
I thought only use Else is the final statement but there were multiple If and Else in this. Lol
@Dani_Krossing
@Dani_Krossing 2 жыл бұрын
Else is the final statement 🙂 “else if” is different than “else”
@jamesframe2705
@jamesframe2705 6 жыл бұрын
Ahhh shit it the last on, noooooooo
@Layilicious
@Layilicious 6 жыл бұрын
The commercials in between videos are very distracting and annoying.... nice course though
@alextoryanik2000
@alextoryanik2000 6 жыл бұрын
I'm a little surprised by the fact that this didn't escalate into a gender debate in the comments xD
@Dani_Krossing
@Dani_Krossing 6 жыл бұрын
I had the same thought :)
@misterimposterroot4060
@misterimposterroot4060 6 жыл бұрын
Well looks like we may need to set up a defense for him rally the knights and keks lol the SJWs are coming lol but for real we got yah back
@ArslanLatef
@ArslanLatef 6 жыл бұрын
@adolfjamesurian6510
@adolfjamesurian6510 4 жыл бұрын
I dont know why this happens to me: function confirmPass() { var pass1 = document.getElementById("pass1"); var pass2 = document.getElementById("pass2"); var txt = "Please enter your password"; var txt2 = "Passwords do not match"; if(pass1 != pass2) { alert(txt2); } else if(pass1, pass2 == "") { alert(txt); } }
@adolfjamesurian6510
@adolfjamesurian6510 4 жыл бұрын
When the if(pass == pass2) itts not running the command inside the branket but its running the command in the else if(pass1 !=pass2) HELP?!!!!
@sehitgoker5073
@sehitgoker5073 Жыл бұрын
wonder why didn t you catch a case suit yet with that anti woke propaganda of yours lol.
@Dani_Krossing
@Dani_Krossing Жыл бұрын
😂 yeah the video didn't age well into 2023...
@sayedhasancp
@sayedhasancp 6 жыл бұрын
My concentration has been lost in your mobile activity ........... :( :( :(
@ihzaq
@ihzaq 3 жыл бұрын
Nice
Exercises: Conditional Statements - Javascript In Depth
23:49
Tech with Nader
Рет қаралды 2,5 М.
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
If statements in JavaScript are easy 🤔
15:58
Bro Code
Рет қаралды 48 М.
Javascript Objects Explained | Javascript Objects Tutorial
23:17
If Else Statements in Python // Python RIGHT NOW!! // EP 4
14:19
NetworkChuck
Рет қаралды 432 М.
JavaScript Loops Made Easy
10:52
codeSTACKr
Рет қаралды 175 М.
Learn Sass In 20 Minutes | Sass Crash Course
19:42
developedbyed
Рет қаралды 944 М.
How To Create/Use Functions - JavaScript Essentials
9:34
Web Dev Simplified
Рет қаралды 146 М.
I built the same app 10 times // Which JS Framework is best?
21:58
Fireship
Рет қаралды 2,6 МЛН
Cheerleader Transformation That Left Everyone Speechless! #shorts
00:27
Fabiosa Best Lifehacks
Рет қаралды 16 МЛН