BasicsPatterns
Pattern
JavaScript Solution & Complexity Analysis
Run & test in browserJavaScript Lab Sandbox
/*
******
******
******
******
******
******
*/
for (let i = 0; i <= 5; i++) {
for (let j = 0; j <= 5; j++) {
process.stdout.write("*");
}
console.log("\n");
}Console Output
Click "Run Code" above to execute and view output...