Consider the following code snippet. What is returned and printed for the value of a?
function start(){
var a = mystery(10, 14);
var b = mystery(82, 28);
println(a);
println(b);
}
function mystery(x, y) {
if (x < y){
return x;
}else{
return y;
}
}
10
14
28
82
1 answer
The value of a is 10.