[Solved] Limitations of Javascript or simple error?


You really should learn to use the console in your browser. I just played it for a little bit with the console open, and got an error:

Uncaught ReferenceError: reppS is not defined

In your computePwr function, you have a variable named repS, but one time you typed it as reppS.

repS = reppS + 60;

Corrected:

repS = repS + 60;

Next time, you should check your console. You could also run your code through jslint, which will catch simple typos and other errors.

3

solved Limitations of Javascript or simple error?