penWidth(20);
for (var count = 0; count < 6; count++) {
moveForward(50);
turnRight(90);
moveForward(50);
turnLeft(90);
}
function staircase(n) {
let filledArray = new Array(n).fill(' ');
while (filledArray.indexOf(' ') !== -1) {
filledArray.shift();
filledArray.push('#');
console.log(filledArray.join(""));
n--;
}
}