0

Why is it not showing the variable money on #amount?

https://code.sololearn.com/WJXak9iXWdQh/?ref=app

31st Mar 2022, 12:59 PM
Spencer Pawlik
Spencer Pawlik - avatar
3 Respostas
+ 2
Lego in Motion click is already a reserve function so change your function with another name Also when you call function from html contents then function definition should not be inside window.onload function https://code.sololearn.com/W2PKstjl3D53/?ref=app
31st Mar 2022, 1:13 PM
A͢J
A͢J - avatar
0
Thanks but it doesn't show money + 1 every time you click.
31st Mar 2022, 1:16 PM
Spencer Pawlik
Spencer Pawlik - avatar
0
Lego in Motion I said change calling function name 'click' to another name. Money will increase. In html, function should be inside double or single quotes
31st Mar 2022, 1:25 PM
A͢J
A͢J - avatar