Q
What will be the output of 10 != '10' in JavaScript?

Answer & Solution

Answer: Option B
Solution:
The inequality operator (!=) compares values for inequality after converting both values to a common type. Hence, 10 is equal to '10', making the result false.
Related Questions on Average

What will be the output of null == undefined in JavaScript?

A). 1

B). 0

C). NaN

D). undefined

What does 5 < 10 evaluate to in JavaScript?

A). 1

B). 0

C). NaN

D). undefined

What will be the output of 5 === 5 in JavaScript?

A). 1

B). 0

C). NaN

D). undefined

What is the result of 5 == '5' in JavaScript?

A). 1

B). 0

C). NaN

D). undefined

What is the result of NaN == NaN in JavaScript?

A). 1

B). 0

C). NaN

D). undefined

What will be the output of 5 == true in JavaScript?

A). 1

B). 0

C). NaN

D). undefined

What is the result of 5 > 3 in JavaScript?

A). 1

B). 0

C). NaN

D). undefined

What is the result of '' == false in JavaScript?

A). 1

B). 0

C). NaN

D). undefined

How does JavaScript evaluate 0 == false?

A). 1

B). 0

C). NaN

D). undefined

How does JavaScript evaluate 10 !== '10'?

A). 1

B). 0

C). NaN

D). undefined