Skip to content

Instantly share code, notes, and snippets.

@JeromeBATAILLE
Created September 24, 2018 11:21
Show Gist options
  • Save JeromeBATAILLE/2862a84cbf842b4de4ccc6dda0c40a33 to your computer and use it in GitHub Desktop.
Save JeromeBATAILLE/2862a84cbf842b4de4ccc6dda0c40a33 to your computer and use it in GitHub Desktop.
Découverte de TypeScript
function hello(name : string) {
console.log("Hello " + name);
}
var firstName = "bob";
hello(firstName);
hello(firstName + " marley");
function concat(a : string, b : string) {
return a + b;
}
var 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