A
Q. What will be the output of the following JavaScript code?
Code:
// JavaScript Comparison Operators
function compare()
{
let a=2;
let b=2.0;
if(a==b)
return true;
else
return false;
}
function compare()
{
let a=2;
let b=2.0;
if(a==b)
return true;
else
return false;
}
- Correct Answer - Option(B)
- Views: 19
- Filed under category JavaScript
- Hashtags:
Discusssion
Login to discuss.