0

code JavaScript in html occuring that function isn't defined

when calling JavaScript function with button onclick in html, it says the function is not defined .Is something wrong with order? https://code.sololearn.com/WShRnUYqcpE1/?ref=app

24th Sep 2018, 2:20 AM
EricWu2
3 Antworten
+ 2
In the app, the console pops up and reports "Uncaught SyntaxError: Unexpected identifier on line 40", which is this line: q2.fillStyle(a3[(3i+i1-1)]); Script instances with errors are rejected, which is why draw() is undefined. Do you mean to multiply 3*i ? Note, if you're on the website and not seeing errors, you may need to open the javascript console for your specific browser.
24th Sep 2018, 2:48 AM
Kirk Schafer
Kirk Schafer - avatar
24th Sep 2018, 3:52 AM
Kirk Schafer
Kirk Schafer - avatar
0
i run code on this app build in browser i have replace 3i with 3*i why it says q2.fillStyle is not a function?
24th Sep 2018, 3:15 AM
EricWu2