Click the green flag. Click 'See inside' to read the basic code to define how to draw a square and how to define the 'Draw a Square' block in 'myBlocks'. We can add an input to say how many grid squares to move. The label 'squares' refers to ‘20px grid squares’.
This example draws squares of sizes 1x1, 2x2, 3x3, 4x4, 5x5 and 6x6 grid-squares.