D

Durgesh • 8.64K Points
Tutor III

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);  
}  
  • (A) 9
  • (B) 0
  • (C) 8
  • (D) Undefined
  • Correct Answer - Option(C)
  • Views: 127
  • Filed under category JavaScript

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics