ReactLearning/TSLearning/Section 1/firstBit.ts

8 lines
159 B
TypeScript
Raw Normal View History

2021-04-22 18:23:26 -04:00
function add(n1 :number, n2 :number){
return n1 + n2;
}
const number1 = 5;
const number2 = 3.3;
const result = add(number1, number2);
console.log(result);