If you have any query feel free to chat us!
Happy Coding! Happy Learning!
In JavaScript, there are two operators for comparing values, which are ==
(loose or abstract equality) and ===
(strict equality).
The ==
operator compares the values on both sides and tries to convert them to the same type before comparing them. For example, 1 == '1'
will return true
because the string '1'
will be converted to the number 1
before the comparison. This is known as type coercion and can lead to unexpected results.
On the other hand, the ===
operator compares the values on both sides without converting them. It checks if they are of the same type and have the same value. For example, 1 === '1'
will return false
because they are of different types.
It is generally recommended to use the ===
operator for comparisons in JavaScript to avoid any confusion and unexpected results due to type coercion.
Comments: 2
I am not able to access videos from second class and further. I have already completed first class
When will I get my course?
Now, Your query was resolved.