Javascript basic quiz question

what is difference between == and === operator…?

2 Likes

== compares only the value but === compares value as well as data type.

1 Like

== operater check value is equal
while === checks value as well as datatype.

1 Like

== only compares the values stored in variable ,where as === compares both values and datatypes .

1 Like

== it compares only the values
=== it compares both the value and that a type

1 Like

== will check value and === check data type and value

1 Like

== is compares only the values
=== is compares both value and data type

1 Like

== compares the value
=== compares the values and data type

1 Like

== compare only the value
ex:- a==a
=== compare both the value and data type
ex:- a===string

1 Like

== compare only the value
=== compare both the value and data type(=== strictly equal to )

1 Like

== compares the value and === will compare the value as well as data type

1 Like

== is only to check the value
===is to check both value and datetype

1 Like

== used for compare the value
=== user for compare both value and datatype

1 Like

== check value is equal
=== checks value as well as datatype

1 Like

== is used to checks value
=== is used to check value as well as data type

1 Like

The difference between them is that the double equal sign (==) compares only the values of the two operands, while the triple equal sign (===) compares both the values and the types of the two operands.

1 Like

== compares the values
=== compares the values and data type of the element

1 Like

== operator does the “type conversion” of the operands before comparison
=== operator compares the values as well as the data types of the operands

1 Like

== is used to compare just values… Whereas === compares both values and data types

1 Like

== compares only value is same or not but === compares values as well as data types

1 Like