What will be the output of the following JavaScript code? [code] Int a=1; if(a>10) { document.write(10); } else { document.write(a)

Duyên Trương

New member
What will be the output of the following JavaScript code?
Code:
Int a=1;
if(a>10)
{  
    document.write(10);  
} 
else
{
    document.write(a);  
}
A. 10
B. 0
C. 1
D. Undefined
 

Tìm kiếm

Back
Top