javascript return func code example
Example 1: return statement javascript
function test(arg){
return arg;
}
Example 2: return value from javascript function
function num(x, y) {
var sum = x + y;
return sum;
}
function test(arg){
return arg;
}
function num(x, y) {
var sum = x + y;
return sum;
}