Created
July 31, 2016 17:16
-
-
Save pboethig/0bbb93918d59001602cb398eef4c307c 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
interface IPerson { | |
firstName: string; | |
lastName:string; | |
} | |
/** | |
* @param Person person | |
*/ | |
function printPerson(Person:IPerson) { | |
return 'Hi ,'+ Person.firstName + ' ' + Person.lastName | |
} | |
var person = {firstName:'Peter', lastName:'Boethig'} | |
document.body.innerHTML = printPerson(person); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment