Skip to content

Instantly share code, notes, and snippets.

@TheCodingLady
Last active March 13, 2018 10:27
Show Gist options
  • Select an option

  • Save TheCodingLady/b6f5eedc97b351ddacb42b4df226e540 to your computer and use it in GitHub Desktop.

Select an option

Save TheCodingLady/b6f5eedc97b351ddacb42b4df226e540 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head><title>TypeScript Greeter</title></head>
<body>
<script src="marley.js"></script>
</body>
</html>
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);
}
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