What is the output of the following program?

function start(){
var x = 5;
sumTo(x);
println(x);
}

function sumTo(num){
var sum = 0;
for(var i = 0; i <= num; i++){
sum += i;
}
println(sum);
}
JavaScript

5
15

15
5

5

15

none, there is a syntax error

The correct output of the program is:

15
5