Created
February 13, 2015 04:59
-
-
Save srgupta/9ff88694d37a4b4aff11 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
function Student(name, score){ | |
this.name = name; | |
this.score = score; | |
this.putTogether = function(){ | |
return this.name + " scored " + this.score + "%" | |
} | |
} | |
var bob = new Student("Bob", 54) | |
bob.putTogether() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment