Secrets and drawBoxes explainer

The aim of this puzzle: Print out the message stored in the variable called passphrase.
Walkthrough of the solution: Within the variable passphrase there is a message. This message can be drawn out in boxes using drawBoxes(), but that doesn’t tell us much. If you instead print() passphrase it will print out the message it’s storing.
Sample code solution:
(Tap below to reveal)

drawBoxes(passphrase); 
print(passphrase);

JavaScript Concepts: Calling Functions, Identifiers
Grasshopper Concepts: print(), drawBoxes()

But where did the passphrase come from?

That’s a great question @Firman_Tahar! There is a little bit of hidden code that defines the passphrase, the code looks like var passphrase = ‘the owl hoots at midnight’. In the next puzzle you’ll get a chance to edit how variables are defined yourself!

1 Like