0

Why am I getting an error here?

Why am I getting an error here? https://code.sololearn.com/WTxla4gvmCVM/#js

27th Nov 2018, 5:00 PM
Yosharu
Yosharu - avatar
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).
27th Nov 2018, 5:41 PM
Kirk Schafer
Kirk Schafer - avatar