The code will accept negative numbers and string for the 'kwhrs' variable. I end up with things like,
The bill for -1 KWHRS:
Cost of Electricity used: -0.61
County surcharge: -9.5
City utility tax: -3.25
If strings are the input however, I get,
The bill for zero KWHRS:
Cost of Electricity used: NaN
County surcharge: NaN
City utility tax: NaN
Resolved (ish) with converting to node.js (#2): Code will no longer run negative numbers and string, but will instead input them, and infinitely loop nothing.
The code will accept negative numbers and string for the 'kwhrs' variable. I end up with things like, The bill for -1 KWHRS: Cost of Electricity used: -0.61 County surcharge: -9.5 City utility tax: -3.25
If strings are the input however, I get, The bill for zero KWHRS: Cost of Electricity used: NaN County surcharge: NaN City utility tax: NaN