Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. //The basic Node class. All Linked Lists are made up of a series of traversable nodes.
  2. export class Node {
  3. //Nodes are initialized with a value, which can be of any data type.
  4. constructor(val){
  5. this.val = val
  6. this.next = null
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement