Created
December 9, 2018 02:38
-
-
Save hyukkwonepic/7489abb6c4b09188e1dd5feac260a923 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Node { | |
constructor(data, next=null) { | |
this.data = data | |
this.next = next | |
} | |
} | |
let ari = new Node('Ari') | |
let malcolm = new Node('Malcolm', ari) | |
let pete = new Node('Pete', malcolm) | |
let ricky = new Node('Ricky', pete) | |
let sean = new Node('Sean', ricky) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment