8 lines
159 B
TypeScript
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); |