1function addNumbers(a: number, b: number) {
2 return a + b;
3}
4
5var sum: number = addNumbers(10, 15)
6
7console.log('Sum of the two numbers is: ' +sum);
8
1//Generated by typescript 1.8.10
2var message = "Hello World";
3console.log(message);