Home / Programming MCQs / JavaScript MCQs / Question
C
Q. What will be the output of the following JavaScript code?
// JavaScript Comparison Operators function compare() { let a=2; let b=2.0; if(a==b) return true; else return false; }
The == in JS convert different types of operands to the same type before making the comparison whereas a strict comparison === results in true value if the operands are of the same type and the contents match.
You must be Logged in to update hint/solution
In what way is the closure compiler efficient?
How to calculate the run time of a code?
Consider the code snippet given below var count = [1,,3]; What is the observation made?
How to declare an array of 10 elements in JavaScript?
One of the main advantage of using src attribute is
How many static methods does a Date object have?
Discusssion
Login to discuss.