What is printed by the following program?
function product(x, y){
return x * y;
}
function difference(x, y){
return x - y;
}
function start(){
var x = 2;
var y = 5;
var value1 = product(x, y);
var value2 = difference(y, x);
var result = difference(value1, value2);
println(result);
}
JavaScript
7
-7
13
-13
1 answer
-7