Skip to content

Instantly share code, notes, and snippets.

@mehdihettak
Created March 19, 2019 14:19
Show Gist options
  • Select an option

  • Save mehdihettak/ad70d83fd7a5ea88c5750f48cdc67a69 to your computer and use it in GitHub Desktop.

Select an option

Save mehdihettak/ad70d83fd7a5ea88c5750f48cdc67a69 to your computer and use it in GitHub Desktop.
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);
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