title: Making a star triangle using javascript function recursively
body: <p>I am pretty new to programming, I am getting to know JavaScript, and I've just learned the notion of recursion. Now I am given a problem, to create a function (like <code>const f = function(n) { }</code>) and if we if we call the function with <code>f(5)</code>, we should see: </p>
  
  <pre><code>     *
      ***
     *****
    *******
   *********
  </code></pre>
  
  <p>The number of vertical stars must be determined by the input.
  I've got to use no for/while/do-while; recursion only to loop.</p>
  
  <p>I've come up with this code to concatenate 5 stars</p>
  
  <pre><code>const f = function(n) {
    if (n === 0) {
      return "";
    }
    return  "*" +  f(n - 1);
  };
  
   console.log(f(5));
  </code></pre>
  
  <p>Though, I don't see how to make the triangle, what can I do?</p>