Sign In | Subscribe
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
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
  • Discussion

  • Study Guides

  • Download Lecture Slides

  • Table of Contents

  • Related Services

Bookmark and Share
Lecture Comments (8)

1 answer

Last reply by: Babak Nozari
Fri Jan 29, 2016 10:35 PM

Post by Babak Nozari on January 29 at 09:01:36 PM

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

Last reply by: Maury Hillstrom
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?

If Logic

  • “If” statements allow a program to make a decision
  • “If” statements require “yes or no” type questions
  • “If” statements take a desired action based on the answer to that question
  • JavaScript “if” statements follow “If...Else...” logic

If Logic

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

  • Intro 0:00
  • The Mighty 'if' 0:11
    • 'If' Statements
  • Conditional Statements in JavaScript 4:00
    • 'If' Statement
    • 'If Else' Statement
    • 'If Else If Else' Statement
    • 'Switch' Statement
  • Example 1: If Statement 6:47
  • Example 2: Two If Statements 9:29
  • Example 3: Multiple If Statements 10:49
  • Example 4: If Else Statement 14:45
  • Example 5: If Else If Else Statement 16:32
  • Example 6: Employee Pay 18:58
  • Example 7: Random Number Generator 26:36
  • Example 8: Switch Statement 30:11