What are Gecko's Javascript interpreter engine semantics?

前端 未结 1 920
生来不讨喜
生来不讨喜 2021-02-15 23:15

Edit

In consideration of the answer response below regarding the reference ECMAScript Language Specification - 11.13.2 Compound Assignment

Considering why thes

相关标签:
1条回答
  • 2021-02-15 23:39

    JavaScript has an eager evaluation (call by value) execution model clearly spelled out in the ECMA standard. All of these questions can be resolved by carful reading of the standard. For example, the reason why the result is 11 above and not 12 is clearly spelled out in 11.13.2 of the standard. o.n is evaluated prior to the call to f() not after as specified by step 2.

    0 讨论(0)
提交回复
热议问题