Created
November 7, 2016 20:54
-
-
Save diegodelfin7/aa14131382ab236403c7873764b97b21 to your computer and use it in GitHub Desktop.
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
var Student = (function () { | |
function Student(firstName, middleInitial, lastName) { | |
this.firstName = firstName; | |
this.middleInitial = middleInitial; | |
this.lastName = lastName; | |
this.fullName = firstName + " " + middleInitial + " " + lastName; | |
} | |
return Student; | |
}()); | |
function greeter(person) { | |
return "Hello ," + person.firstName + " " + person.lastName; | |
} | |
var user = new Student("Jane", "M . ", "User"); | |
document.body.innerHTML = greeter(user); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment