What will be the output of the following JavaScript code? [code] int a=1; if(a!=null) return 1; else return 0;[/code]

Daniel William

New member
What will be the output of the following JavaScript code?
Code:
int a=1;
if(a!=null)
    return 1;
else
    return 0;
A. 1
B. 0
C. runtime error
D. compiler error
 

Tìm kiếm

Back
Top