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