Home / Programming MCQs / JavaScript MCQs / Question

D

Durgesh • 8.64K Points
Tutor III

Q. See the given code of JavaScript and choose the correct output from the following:

Code:
functioncomparing()  
{  
intx=9;  
chary=9;  
if(x==y)  
returntrue;  
else  
returnfalse;  
}  
(A) compilation error
(B) false
(C) runtime error
(D) true

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.