What version of Javascript is supported in node.js

前端 未结 4 985
有刺的猬
有刺的猬 2020-12-12 18:33

I\'m getting started with Node.js and I\'m having a hard time figuring out what version of JavaScript is supported by node which makes it difficult figuring out what feature

4条回答
  •  没有蜡笔的小新
    2020-12-12 19:18

    This matrix (V8 follows the WebKit column fairly closely) seems to pretty well answer the question "what features can I use?" but I can't find a canonical answer to "what version of javascript is supported?" As far as I can tell, the best answer is this: ECMA-262 3rd edition is supported, but many features of the 5th edition are also supported.

    There's a good explanation of why V8 follows the WebKit and JavaScriptCore functionality on this thread.

提交回复
热议问题