+ 1

Why the functions like drawBox() & pickRandom () do not work in the code playground of js??

17th Jul 2020, 4:23 AM
Am_ruta
5 ответов
+ 1
drawBox(red) ; This is the 1 line code & output should be box of red color but it is showing reference error
17th Jul 2020, 7:44 AM
Am_ruta
0
Send you code first then we can help you.
17th Jul 2020, 6:38 AM
Omkar Kamat
Omkar Kamat - avatar
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.
17th Jul 2020, 8:39 AM
Ore
Ore - avatar
0
You can use the below code to draw a box: https://code.sololearn.com/WE5H75jFDYf0/?ref=app
17th Jul 2020, 8:48 AM
Omkar Kamat
Omkar Kamat - avatar
0
This is a version of drawBox that does not rely on HTML code https://code.sololearn.com/Wq3ZGcmAB6Cx/?ref=app
17th Jul 2020, 9:00 AM
Ore
Ore - avatar