Module 1: Introducing Functions

module1_writing_modular_code_with_functions
jason.zhu 2021-05-12 11:36:07 +10:00
parent 4f0a3819c4
commit bd562c63a2
1 changed files with 5 additions and 1 deletions

6
app.js
View File

@ -1 +1,5 @@
console.log("hello");
function sum(num1, num2) {
return num1 + num2;
}
let result = sum(2,3);
console.log(result);