Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hello(name: string) :void {
- console.log("Hello " + name);
- }
- var firstName = "bob";
- hello(firstName);
- hello(firstName + " marley");
- function concat(a : string, b : string): string {
- return a + b;
- }
- var wcs = concat("Wild", concat("Code ", "School"));
- console.log(wcs);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement