Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //The basic Node class. All Linked Lists are made up of a series of traversable nodes.
- export class Node {
- //Nodes are initialized with a value, which can be of any data type.
- constructor(val){
- this.val = val
- this.next = null
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement