Created
March 10, 2018 18:52
-
-
Save JitendraZaa/a504a06bec6cdec98750fb74d3e851ae to your computer and use it in GitHub Desktop.
Sample Javascript file for Jasmine Test Framework
This file contains hidden or 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 Person(first,last,age,eyecolor){ | |
| this.firstName = first; | |
| this.lastName = last; | |
| this.age = age; | |
| this.eyeColor = eyecolor; | |
| } | |
| Person.prototype.name = function(){ | |
| return this.firstName+ " "+this.lastName; | |
| }; | |
| Person.prototype.changeAge = function(newAge){ | |
| this.age = newAge; | |
| }; | |
| Person.prototype.getAge = function(){ | |
| return this.age ; | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment