Skip to content

Instantly share code, notes, and snippets.

@photofroggy
photofroggy / ex.js
Created September 30, 2012 23:34 — forked from anonymous/gist:3808735
// Make your card constructor again here, but make sure to use private
// variables!
function Card(s, n) {
var suit = s;
var number = n;
this.getSuit = function() {
return suit;
};
this.getNumber = function() {
return number;