Skip to content

Commit 9ca77f2

Browse files
committed
commit
1 parent 35e7d69 commit 9ca77f2

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

ControlStatement/ConditionalStatement.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,4 +364,23 @@ let person1 = {
364364
};
365365
for(let key in person){
366366
console.log(key, person[key]);
367-
}
367+
}
368+
369+
370+
371+
//JavaScript return Statement (With Examples)
372+
373+
function add(a, b) {
374+
return a + b; // sends the result back
375+
}
376+
377+
let result = add(5, 3);
378+
console.log(result);
379+
380+
381+
function add(b,c) {
382+
return b+c;
383+
}
384+
385+
let result_1 = add(10,19);
386+
console.log(result_1);

0 commit comments

Comments
 (0)