Connecting...

This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of JavaScript
For more information, please see full course syllabus of JavaScript
JavaScript If Logic
Lecture Description
In this lesson our instructor talks about the 'if' statements and 'if' logic. He also discusses the 'if else', 'if else if else', and the 'switch' statement. He finishes by explaining eight complete example problems.
Bookmark & Share
Embed
Share this knowledge with your friends!
Copy & Paste this embed code into your website’s HTML
Please ensure that your website editor is in text mode when you paste the code.(In Wordpress, the mode button is on the top right corner.)
×
- - Allow users to view the embedded video in full-size.
Next Lecture
Previous Lecture
2 answers
Last reply by: DJ Sai
Mon Jan 29, 2018 10:06 PM
Post by DJ Sai on June 16, 2017
42*25 is not 1075
1 answer
Last reply by: Babak Nozari
Fri Jan 29, 2016 10:35 PM
Post by Babak Nozari on January 29, 2016
wow, your website doesn't load... great .... the one time I wanted to study...
0 answers
Post by Hernan Arboleda Hernan Arboleda on May 24, 2013
where can i download the source code for the examples?
Ans: Hi Khurram, as far as I know, Educator doesn't provide downloadable files for any of its content. You can, however, pause these JavaScript videos as needed if you'd like to code along with the demonstration.
Hi Mr. Maury for us is easy to follow if we can download al the files for lecture, web or homeword as I did on Advanced PHP an other couses. Please post all the file. Thank You
1 answer
Tue Sep 25, 2012 4:17 PM
Post by Chad Buie on September 24, 2012
That is a lot of micro-steps; guess that is what programming really is.
0 answers
Post by Daniel Fuller on January 7, 2012
If you do not have to parse the integers here I was just curious as to why that is since you are still having to make mathematic calculations with the numbers the user inputs.
0 answers
Post by Daniel Fuller on January 7, 2012
I have been having some trouble getting this code to work when I type it out. I noticed that in the example that you displayed during the lecture the "hours" and "payRate" variables were not parsed as integers like you have done in your past examples. When I run my code the "Gross Pay" displays as " $NaN ". I assume this is because the numbers that the user inputs in the dialogue boxes were not parsed. However, I noticed that you didn't have that issue. Could you give me some help on this issue?