Tell me what is the difference between == and === ?
Submitted by: MuhammadThe 3 equal signs mean "equality without type coercion". Using the triple equals, the values must be equal in type as well.
== is equal to
=== is exactly equal to (value and type)
0==false // true
0===false // false, because they are of a different type
1=="1" // true, auto type coercion
1==="1" // false, because they are of a different type
Submitted by: Muhammad
== is equal to
=== is exactly equal to (value and type)
0==false // true
0===false // false, because they are of a different type
1=="1" // true, auto type coercion
1==="1" // false, because they are of a different type
Submitted by: Muhammad
Read Online HTML Developer Job Interview Questions And Answers
Top HTML Developer Questions
☺ | Tell me do all HTML tags come in pair? |
☺ | Explain me what is image map? |
☺ | How to insert a copyright symbol on a browser page? |
☺ | Explain me does a hyperlink apply to text only? |
☺ | Explain me why are there both numerical and named character entity values? |
Top Web Developer Categories
☺ | Bootstrap Interview Questions. |
☺ | Front End Web Developer Interview Questions. |
☺ | Typography Interview Questions. |
☺ | Laravel PHP Developer Interview Questions. |
☺ | Junior Developer PHP Interview Questions. |