📜  构建链表 javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:35.933000             🧑  作者: Mango

代码示例1
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;
  }
}