Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Prints the list backwards. Just one little perk of being able to read in
- //reverse.
- reversePrint(){
- let read = this.tail
- while(read !== null){
- console.log(read.val)
- read = read.previous
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement