Home  >  Article  >  Web Front-end  >  JavaScript: The difference between one equal sign, two equal signs, and three equal signs

JavaScript: The difference between one equal sign, two equal signs, and three equal signs

高洛峰
高洛峰Original
2016-10-12 13:45:211949browse

JavaScript The difference between one equal sign, two equal signs and three equal signs

One equal sign =: indicates assignment;

two equal signs==: convert the type first and then compare;

three equal signs===: Determine the type first, if it is not the same type, directly false.


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn