typescript learning code example
Example 1: typescript tutorials
function addNumbers(a: number, b: number) {
return a + b;
}
var sum: number = addNumbers(10, 15)
console.log('Sum of the two numbers is: ' +sum);
Example 2: typescript tutorial
//Generated by typescript 1.8.10
var message = "Hello World";
console.log(message);