Enter your Sign-on user name and password.

Forgot password?
  • Follow us on:
Loading video...
Text Comments (7)

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?

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.

1 answer

Last reply by: Maury Hillstrom
Tue Sep 25, 2012 4:15 PM

Post by khurram mughal on August 28, 2012

where can i download the source code for the examples?

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 Nathan Bear on April 3 at 11:15:10 PM

Nice burp!

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.

Computer Science: JavaScript