Skip to content

Instantly share code, notes, and snippets.

@methodbox
Created July 23, 2019 00:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save methodbox/0c3751d11442d4926a9106f9f25dad59 to your computer and use it in GitHub Desktop.
Save methodbox/0c3751d11442d4926a9106f9f25dad59 to your computer and use it in GitHub Desktop.
ts - part 2 - example 2
const bob: string = 'Bob';
const bobsAge: number = 20;
function personAge(person: string, age: number) {
return `${person} is ${age} years old.`;
}
personAge(bob, bobsAge);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment