ReactLearning/TSLearning/Section 1/firstBit.ts
2021-04-23 10:23:26 +12:00

8 lines
159 B
TypeScript

function add(n1 :number, n2 :number){
return n1 + n2;
}
const number1 = 5;
const number2 = 3.3;
const result = add(number1, number2);
console.log(result);