Facebook – https://www.facebook.com/TheNewBoston-464114846956315/
GitHub – https://github.com/buckyroberts
Google+ – https://plus.google.com/+BuckyRoberts
LinkedIn – https://www.linkedin.com/in/buckyroberts
reddit – https://www.reddit.com/r/thenewboston/
Support – https://www.patreon.com/thenewboston
thenewboston – https://thenewboston.com/
Twitter – https://twitter.com/bucky_roberts
Original source
34 responses to “Beginner JavaScript Tutorial – 15 – if/else Statement”
Awesome, thank u for the videos!
from what i can read in the comments, I still believe we struggle at school because the teachers want to sound smart. Bucky doesn't give a shite if you think he is smart or not. dumbs it down to beginner level and we all understand.
You managed to explain what my professor couldn't. he had a semester, you had less than 10 minutes. Jesus fuck man, thank you and fuck college.
Coco+Nuts =Coconuts
I love these tutorials!
Thank you. You're very good at explaining this.
this is really similar to python
What about the third form "if … else if"?
<script>
var Bucky = 'a' ;
var Buck='h' ;
if (Bucky > Buck){
document.write("Bucky u r awesome ");
}else{
alert(" u r still awesome Bucky ");
}
</script>
Thanks a lot bucky about this video, haven't coding for nearly 3 years, want to get back to programming again. This is a good refreshment to get memory back.
Can one use a else if in javascript?
another great tutorial, i'm going to watch all 40. thanks bucky
awesome videos but i still dont get it why dont u use stricts like === instead == u know u are missleading people right ?
Is there a else if statement and are there && || operators
Nice tutorial..
Now the time is go..!!!
var apples = 34;
var hotdogs = 53;
var people = 15;
if(apples + hotdogs >= people){
document.write("You have enough weenies and apples!");
}
else{
document.write("You do not have enough weenies and apples!");
}
Thank you for the tutorial.
GOD bless you and keep you.
You're my inspiration bucky.
THE NEW BOSTON KICKS ASS! GO EAT A HOT POCKET NOW!! OH BILLY!!!! AFTER THESE LESSONS I'LL NEVER GO BACK TO FARM ANIMALS!
if(strawberries == coconut){
document.write("Bucky loves coconut");}
so far the only difference iv seen from processing and javascript is how u out down a text….iv been having to skip to something i dont know since all this is teaching me stuff i learned in processing (processing is actually called Proccesing.JS, its a simpler version of javascript, but not so different aparently) but i guess im lucky, i know most of javascript already
Dayum I love this tutorials! You are the best!
hi
can you tell me plz how i can write a paragraph in arabic
while coding in html ??
So is this the basics of every Catpa security question? lol
This reminds me of C++. I imagine you can also do more than one test like this:
if(3 <5 && 30 < 99)
{
document.write("Yay it works!");
}
else if (4<8 || 5 > 8)
{
document.write("Only half is correct!");
}
else
{
document.write("I am a total failure!");
}
doesnt work for me
These videos always makes me hungry.
if(comparison)
{
}else if(comparison)
{
}
else
{
}
Also you can make it do a function outside the if/else statement.
you can use if else if example :
if bracket something == something bracket curly bracket
do this
curly bracket
else if bracket this == this bracket curly bracket
do this
curly bracket
How can I tell it to do different calculation for two cases
clean and clear
Yes!! i also sometimes programm using c++ and i also think that is similar to the javascript
6 Peoples DOnt have both ear and eyes