Skip to content

Instantly share code, notes, and snippets.

@GrantSchiller
Last active December 24, 2015 01:19
Show Gist options
  • Save GrantSchiller/6722785 to your computer and use it in GitHub Desktop.
Save GrantSchiller/6722785 to your computer and use it in GitHub Desktop.
function Node(c,n) {
this.content = c || null;
this.nextNode = n || null;
}
Node.prototype.getContent = function() {
return this.content;
}
Node.prototype.setContent = function(c) {
this.content = c;
}
Node.prototype.getNextNode = function() {
return this.nextNode;
}
Node.prototype.setNextNode = function(n) {
this.nextNode = n;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment