What's missing in this code?
function printAsteriskHat(height)
for (let i = 1; i <= height;
)
let spaces = ' '.repeat(height - i);
let stars =
.repeat(2 * i - 1);
console.log(
);
}
}
// Example usage:
printAsteriskHat(4);
// *
// ***
// *****
// *******
Type or select from these options