0
Why am I getting an error here?
Why am I getting an error here? https://code.sololearn.com/WTxla4gvmCVM/#js
1 Resposta
+ 2
nameButton() is declared inside the onload() function, which makes it private to onload / not globally-defined.
FYI, indentation helps you see these sorts of problems more easily (auto code beautifiers help).