return keyword
return
keyword is used to return a value to the function call.
function execution stops after return
statement.
function add(a, b) {
let sum = a + b;
return sum;
}
output = add(3, 4);
console.log(output);
return
keyword is used to return a value to the function call.
function execution stops after return
statement.
function add(a, b) {
let sum = a + b;
return sum;
}
output = add(3, 4);
console.log(output);