+ 1

Please someone tell me why my javascript won't run!

https://code.sololearn.com/WpZS8RM23NdL/#html Can someone please correct my code so it draws the js picture when I run it.

13th Dec 2017, 6:47 PM
Alec Vindas
Alec Vindas - avatar
6 ответов
+ 5
Are you trying to use p5.js?
13th Dec 2017, 7:53 PM
Ranjan Bagri
Ranjan Bagri - avatar
+ 4
window.addEventListener('load',onLoad); function onLoad(){ setup(); draw(); } Add this to the beginning of your js code, that should make your functions execute, but there are still some errors with them, the rest is up to you, good luck👍
13th Dec 2017, 7:51 PM
the_code_genin
the_code_genin - avatar
+ 3
Functions cannot execute themselves
13th Dec 2017, 7:37 PM
the_code_genin
the_code_genin - avatar
+ 1
Do you know how to fix it?
13th Dec 2017, 7:45 PM
Alec Vindas
Alec Vindas - avatar
+ 1
Not really
13th Dec 2017, 8:57 PM
Alec Vindas
Alec Vindas - avatar
+ 1
Ok I see thanks for the help guys!
14th Dec 2017, 4:28 AM
Alec Vindas
Alec Vindas - avatar