+ 3
How can I add 1 to variable? (line 26)
5 Respuestas
+ 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.