Skip to content Skip to sidebar Skip to footer

For Loop Causing "Unexpected Token" Error

I'm trying to pick up javascript, and I'm writing a fairly simple script where a user gives a number of pennies and a number of days. The script will then calculate how much money

Solution 1:

For loops are written like this:

for (i = 0; i < days; i++){

with semicolons. You used commas.


Post a Comment for "For Loop Causing "Unexpected Token" Error"