Q. Which of the following is the correct output for the following JavaScript code:
Code:
Int x=8;
if(x>9)
{
document.write(9);
}
else
{
document.write(x);
}
β
Correct Answer: (C)
8