// Function expression
var fullName : (first : string, last : string) => string;
fullName = function(first : string, last : string) {
return first + " " + last;
}
console.log(fullName('Jordan', 'Hudgens'));
// Immediately invoked version
(function(first : string, last : string) {
console.log(first + " " + last);
})('Tiffany', 'Hudgens');
To embed this project on your website, copy the following code and paste it into your website's HTML: