Advertisement
Guest User

Untitled

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