How do JavaScript versions correlate to ECMAScript versions?

对着背影说爱祢 提交于 2019-12-06 23:47:18

问题


For example, [].map was "implemented in JavaScript 1.6." Is that an ES5 method? How does the 1.6 correlate to an ECMAScript version?


回答1:


There aren't really strict correspondences between the version numbers Mozilla uses and the ECMAScript standard's version numbers. There's a table on Wikipedia that might be what you're looking for -- you'll see that JavaScript 1.6 corresponds to ECMAScript 3 and then some additional extensions. [].map specifically was standardized in ECMAScript 5, but to my understanding, the feature was first introduced by Firefox before the ECMAScript 5 standard was even published. (Firefox 1.5 which included JavaScript 1.6 was released on November 29, 2005, and the standard appears to have been published in September 2009.)



来源:https://stackoverflow.com/questions/11460913/how-do-javascript-versions-correlate-to-ecmascript-versions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!