visuco
Challenge 10 of 12

One function can ask another for an answer. Write halfOf to return half its number, and drawBox to place an ORANGE square of the size given, centred on its across and 200 down, using halfOf.

Call it at 120 size 100 and 280 size 160, on BLACK.

Your code JavaScript

Call it at 120 size 100 and 280 size 160, on BLACK.

0 / 30 frames · 400×400
Target
Yours
Results
0%
Press Run to check your code
Penalties: none this run

Report this challenge