title: Linked list with recursion
body: <p>Good morning, I'm learning and I want to make a Linked List with recursive function, I was looking for examples but I only found examples in Java or other types.
  From what I saw I suppose it would be something like that, but I can't get it to work. If someone could help me I would appreciate it very much.
  Thank you.</p>
  <hr />
  <pre><code>function ListRecurse () {
      this.head = null;
      this.size = 0;
  }
  function Node () {
      this.data = data; 
      this.next = next;
  }
  ListRecurse.prototype.add = function (data) {
      let NewNode = new Node(this.add(data), null)
      if (this.head === null) {
          this.head = NewNode;
      }
      else {
          let current = this.head;
          while (current.next) {
              current = current.next;
          }
          current = NewNode
      }
      this.size ++;
  }
  </code></pre>
  <hr />