JavaScript Looping Star

const n = 5; 
for(let i=1; i<=n; i++){
       console.log("*".repeat(i));
    }
Reynaldi