Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. function hello(name: string) {
  2. console.log("Hello " + name);
  3. }
  4.  
  5. let firstName: string = "bob";
  6.  
  7. hello(firstName);
  8. hello(firstName + " marley");
  9.  
  10. function concat(a: string, b: string): string {
  11. return a + b;
  12. }
  13.  
  14. let wcs = concat("Wild", concat("Code", "School"));
  15. console.log(wcs);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement