What will be the output of the following JavaScript code?
// JavaScript Comparison Operator
function compare ()
{
int num=2;
char b = 2;
if (a==b)
return true;
else
return false;
1
true
2
compilation error
3
false
4
runtime error
What will be the output of the following JavaScript code?
// JavaScript Comparison Operator
function compare ()
{
int num=2;
char b = 2;
if (a==b)
return true;
else
return false;