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