πŸ“Š JavaScript
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) 8

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
198
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Durgesh
Publisher
πŸ“ˆ
84%
Success Rate