A
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);
}
if(x>9)
{
document.write(9);
}
else
{
document.write(x);
}
- Correct Answer - Option(C)
- Views: 20
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.