Construindo uma lista vinculada JavaScript

class Node {
  constructor(element){
  //the element holds the data of a node
  this.element = element;
  //pointer to the next node which is initialized to null
  this.next = null;
  }
}
tinydev