Skip to content

Instantly share code, notes, and snippets.

@romaricpascal
Created May 30, 2013 15:22
Show Gist options
  • Select an option

  • Save romaricpascal/5678720 to your computer and use it in GitHub Desktop.

Select an option

Save romaricpascal/5678720 to your computer and use it in GitHub Desktop.
Implementation for the test-shortcut.js test case
function MovieCast(characters){
this._size = characters.length;
}
MovieCast.prototype.size = function () {
return this._size;
}
MovieCast.prototype.add = function (character) {
this._size++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment