javascript how to return a value from a function as a value js code example
Example: return value from javascript function
function num(x, y) {
var sum = x + y;
return sum;
}
function num(x, y) {
var sum = x + y;
return sum;
}