+ 3
How can I add 1 to variable? (line 26)
5 Answers
+ 9
+ 5
Use += instead of =+
+ 4
line 34 addcookie() not addcookie1()
+ 1
because âcookiesâ is a constant (designated by âletâ) instead of a variable (designated by âvarâ), you cant change the value of cookies from 0. try changing line 15 to âvar cookies = 0â and line 26 to cookies++, cookies += 1, or somthing similar. that should solve your problem.