Which Javascript version(s) does IE8 supports?

前端 未结 4 540
天命终不由人
天命终不由人 2021-01-31 15:09

According to Wikipedia, IE8 only supports Javascript 1.5. So they are saying IE8 completely ignores Javascript versions 1.6, 1.7, 1.8 and 1.9.

Should I trust? Is it true

4条回答
  •  执念已碎
    2021-01-31 15:27

    Well, actually the IE implementation is called JScript, JavaScript(TM) is the implementation of Mozilla.

    JScript and JavaScript are two ECMAScript-based dialects.

    JavaScript 1.5 conforms with the ECMAScript 3rd Edition Standard, the subsequent versions, JS 1.6, 1.7 and 1.8 introduce language features that are out of that standard edition, often called Mozilla Extensions.

    That's why JScript doesn't have any of these features, because they are not part of the ECMA Standard.

提交回复
热议问题