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--;
}
}
var climbStairs = function(n) {
if (n == 1 || n == 0) return 1 // our base cases
let first = 1;
let second = 2;
for (let i = 3; i <= n; i++) {
let third = first + second;
first = second;
second = third;
}
return second;
};