Without nesting loops, how are you able to form such an ascii art?
####
###
##
#
This is what I currently have:
function invertTriangle (row) {
var asteric = "*" * row;
for ( var y=row; y>=row; y--){
asteric = asteric - "*";
console.log(asteric);
}
};
invertTriangle(10);
I will appreciate your help and explanation!
Thank you!
Try:
Hope that helps.