+ 1
Why the functions like drawBox() & pickRandom () do not work in the code playground of js??
5 ответов
+ 1
drawBox(red) ;
This is the 1 line code & output should be box of red color but it is showing reference error
0
Send you code first then we can help you.
0
Amruta There is no function called "drawBox" or "pickRandom" in the standard library. Sites like codecademy just use such function to enable easier understanding of the concept.
0
You can use the below code to draw a box:
https://code.sololearn.com/WE5H75jFDYf0/?ref=app
0
This is a version of drawBox that does not rely on HTML code
https://code.sololearn.com/Wq3ZGcmAB6Cx/?ref=app