Created
March 19, 2019 14:19
-
-
Save mehdihettak/ad70d83fd7a5ea88c5750f48cdc67a69 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
| 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); | |
| } | |
| var firstName : string = "bob"; | |
| hello(firstName); | |
| hello(firstName + " marley"); | |
| function concat(a : string, b : string) : string{ | |
| return a + b; | |
| } | |
| var wcs : string = 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