=== vs ==

July 14, 2021

--- Views

话不多说,直接上图。

==

==

===

===

If Statements

if

Equality in JavaScript (All Table)

All

Conclusion

Always use === !!!

Reference

  1. StakOverflow: Which equals operator (== vs ===) should be used in JavaScript comparisons? Link
  2. Dorey’s Github Page Link

Profile picture

Written by Zeyu XIONG
MPhil student at The Hong Kong University of Science and Technology (Guangzhou)

© 2023, Built with Gatsby
--- Views In This Site