Skip to content

Instantly share code, notes, and snippets.

View solimanware's full-sized avatar
🦆
debuggign

Osama Soliman solimanware

🦆
debuggign
View GitHub Profile
let treesize = 10;
let counter = treesize;
let arr = [];
//tree
for (let i = 0; i < treesize; i++) {
arr.push(' '.repeat(counter) + '*'.repeat((i*2)+1));
counter--;
}
//trunk