Q:

The drawStarsStairs challenge

I need a code that would print a pattern of # depending on what I type into the console. I also want the code to use three for loops and a function. 
For example, if I type in something like drawStarStairs(5), I want a certain pattern of stars to be printed onto the console. Like this:
#
##
###
####
#####

If I type in drawStarStairs(3), it would be like this:
#
##
###

If I type in drawStarsStairs(2), it would be like this:
#
##

Thanks in advance!

A:

function draw(inputNum) {
var pound="";
for(var i = 1; i <=inputNum; i++ ) {
        for(j = 0; j<i;j++) {
             pound+="#";
         }  
            pound+="\n";
    }
    console.log(pound)
}
draw(5);

