Which of the following options would be the correct output for the given JavaScript code?

var x=0;  
for(x;x10;x++);
console.log(x);

Posted on by