+ 1
What am i doing wrong
var clicks = 0; function addClick(){ clicks += 1; function charity(){ addClick -= 1; } document.getElementById("clicks").innerHTML = clicks; };
3 ответов
+ 2
functions within: you cannot declare another function but you can call another function
0
your charity function is undefined
0
and you could just use the button tag