本文共 565 字,大约阅读时间需要 1 分钟。
javascript运算符
You can use the following operators to compare two numbers, or two strings.
您可以使用以下运算符比较两个数字或两个字符串。
The operation returns a boolean.
该操作返回一个布尔值。
<
less than
<
小于
<=
minus than, or equal to
<=
小于或等于
>
greater than
>
大于
>=
greater than, or equal to
>=
大于或等于
const a = 2a >= 1 //true
When comparing strings, those operators check for the letter ordering, encoded in Unicode. The bigger the letter value, the bigger the letter is to the operator when comparing.
比较字符串时,这些运算符将检查以Unicode编码的字母顺序。 字母值越大,比较时给操作员的字母越大。
You can find the .
您可以找到 。
翻译自:
javascript运算符
转载地址:http://noqgb.baihongyu.com/