On iOS app, I am not able to access the keyboard in the playground. For instance, I cannot write blue when creating a box. It worked fine in the puzzle. In the playground, though, it doesn’t appear. Did I miss something? Thank you.
2 Likes
You have to use str to write any word using thekeyboard
2 Likes
How to write color in the following code in Code Playground on Android app?
drawBox(pickRandom(color))
Even writing with str
it is not helping.
1 Like
In some puzzles there are variables defined that are hidden for the code view. color
is one of these variables.
If you’ve made it through to the Arrays topic, you should be able to recreate the color
variable, using code like:
var color = ['red', 'blue', 'green', 'orange', 'yellow']
You can then use the variable color
, inside the pickRandom()
function.
Hoping this helps!
H
3 Likes