my second program in JS

There is a flaw in the program. But that is on purpose. The book created a flaw so you can learn to see errors. This error is that there is a concatentation done by the computer, treating the numbers as strings and adding them instead of adding the tip to the meal price as a calculation.

The next exercise corrects this error. As we learn how to assess types of variables in Javascript.

Published by pflynt

My sense of humour is absurdist, inwardly bleak, caustic and morose, self-referential, rebellious and defiant, even in some cases sadistic, but overall sincere and even in the tragedies, hopeful.

Leave a Reply

Create your own website, free on WordPress.com.Create your own website.
Start free