Last active
March 13, 2018 10:27
-
-
Save TheCodingLady/b6f5eedc97b351ddacb42b4df226e540 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head><title>TypeScript Greeter</title></head> | |
| <body> | |
| <script src="marley.js"></script> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function hello(name) { | |
| console.log("Hello " + name); | |
| } | |
| var firstName = "bob"; | |
| hello(firstName); | |
| hello(firstName + " marley"); | |
| function concat(a, b) { | |
| return a + b; | |
| } | |
| var wcs = concat("Wild", concat("Code", "School")); | |
| console.log(wcs); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function hello(name:string){ | |
| console.log("Hello " + name); | |
| } | |
| let firstName = "bob"; | |
| hello(firstName); | |
| hello(firstName + " marley"); | |
| function concat(a:string, b:string) { | |
| return a + b; | |
| } | |
| let wcs = concat("Wild", concat("Code", "School")); | |
| console.log(wcs); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment