Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

building a linked list 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;
  }
}
 
PREVIOUS NEXT
Tagged: #building #linked #list #javascript
ADD COMMENT
Topic
Name
5+7 =