title: Problems when printing a circular singly linked list
body: <p>I have a circular singly linked list code:</p>
  <pre><code>class Node{
      constructor(value){
          this.value = value;
          this.next = null;
      }
  }
  
  class LinkdeList{
      constructor(){
          this.first = null;
          this.last = null;
      }
  
      empty(){
          return this.first === null
      }
  
      insert(value){
          let newest = new Node(value);
  
          if (this.empty()) {
              this.first = this.last = newest;
              this.last.next = this.first;
          }else{
              newest.next = this.first;
              this.first = newest;
              this.last.next = this.first;
          }
      }
  
      traverse(){
          let aux = this.first;
          while (aux.next != this.first) {
              console.log(aux.value);
              aux = aux.next;
          }
      }
  }
  
  let linked = new LinkdeList();
  linked.insert(&quot;David&quot;);
  linked.insert(&quot;John&quot;);
  linked.insert(&quot;Adam&quot;)
  linked.insert(&quot;Bob&quot;);
  linked.traverse();
  </code></pre>
  <p>And when I tried to print the list, I just get in console 3 names:</p>
  <pre><code>Bob
  Adam
  John
  </code></pre>
  <p>And as you can see I push 4 names in my linked list. I tried to print the values of my list in the <code>traverse</code> method, but It didn´t work because I don´t get in console:</p>
  <pre><code>Bob
  Adam
  John
  David
  </code></pre>