当前位置:网站首页>Priority of JS operator
Priority of JS operator
2022-06-28 08:13:00 【Mediocrity and laziness】
js Operator precedence
Because recently js One of the typeof My scalp is numb because of my priority , So make a complete record js Operator priority
| priority | Arithmetic type | Relevance | Operator |
|---|---|---|---|
| 21 | parentheses | n/a( Unrelated ) | () |
| 20 | Member visit | From left to right ) | . |
| 20 | Member access to be calculated | From left to right ) | [] |
| 20 | new ( With parameter list ) | n/a | new … ( … ) |
| 20 | Function call | From left to right ) | … ( … ) |
| 20 | Optional chain (Optional chaining) | From left to right ) | ?. |
| 19 | new ( No parameter list ) | From right to left | new … |
| 18 | Post increment ( Operator after ) | n/a | … ++ |
| 18 | Post decrement ( Operator after ) | n/a | … – |
| 17 | Logic is not | From right to left | ! … |
| 17 | Bitwise non | From right to left | ~ … |
| 17 | Unary addition | From right to left | + … |
| 17 | One dollar subtraction | From right to left | - … |
| 17 | Pre increment | From right to left | ++ … |
| 17 | Pre decrement | From right to left | –… |
| 17 | typeof | From right to left | typeof |
| 17 | void | From right to left | void |
| 17 | delete | From right to left | delete |
| 17 | await | From right to left | await |
| 16 | power | From right to left | … ** … |
| 15 | Multiplication | From left to right | … *… |
| 15 | division | From left to right | … /… |
| 15 | modulus | From left to right | … %… |
| 14 | Add | From left to right | … +… |
| 14 | Subtraction | From left to right | … -… |
| 13 | Move left according to position | From left to right | … << … |
| 13 | Right shift to position | From left to right | … >>… |
| 13 | unsigned right shift | From left to right | … >>> … |
| 12 | Less than | From left to right | … < … |
| 12 | Less than or equal to | From left to right | … <= … |
| 12 | Greater than | From left to right | … <>… |
| 12 | Greater than or equal to | From left to right | … >= … |
| 12 | in | From left to right | … in … |
| 12 | instanceof | From left to right | … instanceof … |
| 11 | Equal sign | From left to right | … ==… |
| 11 | Unequal sign | From left to right | … !=… |
| 11 | All in one | From left to right | … ===… |
| 11 | Not all equals | From left to right | … !==… |
| 10 | Bitwise AND | From left to right | … &… |
| 9 | Bitwise XOR | From left to right | … ^… |
| 8 | Press bit or | From left to right | … 1… |
| 7 | Logic and | From left to right | … &&… |
| 6 | Logic or | From left to right | 11 |
| 5 | Null merge | From left to right | … ?? … |
| 4 | Conditional operator | From right to left | … ? … : |
| 3 | assignment | From right to left | … =、+= Equisign … |
| 2 | yield | From right to left | yield … |
| 2 | yield* | From right to left | yield* … |
| 1 | Expand operator | n/a | … |
| 0 | comma | From right to left | , |
Unable to type in the table because of the editor
|Symbol , So here we use 1 Instead of , Please pay attention to the difference .
边栏推荐
- SOC timer and interrupt configuration
- sql分析(查询截取分析做sql优化)
- asp. Net upload image path and image name
- 探讨gis三维系统在矿山行业中的应用
- Configuring MySQL multi instance master-slave synchronization for Linux
- Ambari (VII) --- ambari integrated hue4.2 document (valid for personal test)
- The maximum number of Rac open file descriptors, and the processing of hard check failure
- B_QuRT_User_Guide(26)
- 你了解TCP协议吗(一)?
- Leetcode摆动序列系列
猜你喜欢

你了解TCP协议吗(二)?

ROS notes (09) - query and setting of parameters

asp. Net registration page

Redis cluster deployment and application scenarios

NLP sequence can completely simulate human brain intelligence

【学习笔记】拟阵

设置cmd的编码为utf-8

Unity gets the coordinate point in front of the current object at a certain angle and distance

Soft test -- software designer -- database design of afternoon questions

Jenkins' common build trigger and hook services (V)
随机推荐
图像翻译/Transformer:ITTR: Unpaired Image-to-Image Translation with Transformers用Transfor进行非配对图像对图像的转换
In flood fighting and disaster relief, the city donated 100000 yuan of love materials to help Yingde
设置网页的标题部分的图标
sql主從複制搭建
SOC serial port configuration
Airflow2.x distributed deployment DAG execution failure log cannot be obtained normally
Leetcode摆动序列系列
Configuring MySQL multi instance master-slave synchronization for Linux
Chenglian premium products donated love materials for flood fighting and disaster relief to Yingde
Prometheus deployment alarm docking QQ mailbox
Soft test -- software designer -- database design of afternoon questions
B_QuRT_User_Guide(26)
Eslint syntax monitoring off
npm清理缓存
ROS 笔记(09)— 参数的查询和设置
【学习笔记】模拟
About RAC modifying scan IP
Explanation and application of instr() function in Oracle
开户券商怎么选择?网上开户是否安全么?
Is it reliable for securities companies to register and open accounts? Is it safe?