I was doing the shakes puzzles and it was (drawbox) (ggg yyy bbb) I was asking how the computer knows to make a new line instead of just continuing on the first line
Hey there, the drawBoxes
function interprets any space in a string as a new line. Therefore drawBoxes('g b'
) is the same as:
drawBox('green');
newLine();
drawBox('blue');