Javascript order of referencing

前端 未结 4 1227
不思量自难忘°
不思量自难忘° 2020-12-07 05:25

What order does the following statement run? Does the runtime execute it from right to left?

  length = i = test = output = null;
4条回答
  •  粉色の甜心
    2020-12-07 06:01

    That single line assignment is equivalent to this

    output = null;
    test = output;
    i = test;
    length = i;
    

提交回复
热议问题