Freshers Aptitude technical questions
Freshers Job Alert
Bookmark and Share

•  Diff between Comparison Operators == & ===?

 

Operator

Description

Example

==

is equal to

5==8 returns false

===

is equal to (checks for both value and type)

x=5
y="5"

x==y returns true
x===y returns false