We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35e7d69 commit 9ca77f2Copy full SHA for 9ca77f2
1 file changed
ControlStatement/ConditionalStatement.js
@@ -364,4 +364,23 @@ let person1 = {
364
};
365
for(let key in person){
366
console.log(key, person[key]);
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