Explain 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 Front End Programmer Job Interview Questions And Answers
Top Front End Programmer Questions
☺ | What is variable scope? |
☺ | Tell me why do we recommend external CSS or Javascript versus inline? |
☺ | Explain what is the lazy loading? |
☺ | What is the difference between JSON and JSONP? |
☺ | HTML / HTML5 Based Front End Developer Interview Questions: |
Top Graphical User Interface (GUI) Categories
☺ | User Interface Expert Interview Questions. |
☺ | Front End Programmer Interview Questions. |
☺ | Lead Web Designer Interview Questions. |
☺ | Senior Graphics Designer Interview Questions. |
☺ | Web Designer Freelance Interview Questions. |