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
Be the first to start discuss.
Q. Which of the following are JavaScript logging library?
Q. Purpose of designing the Javascript
Q. What can be done to monitor the memory usage?
Q. What will be the output of the following JavaScript code snippet?
Q. What will be the output of the following code snippet?
Q. Which is the method used for registering handlers?
Q. Javascript is _________ language.
Q. See the given code of JavaScript and choose the correct output from the following:
Discusssion
Login to discuss.