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