Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to know which javascript version in my NODEJS?

I want to know which javascript version is my NodeJS is supporting ?

like image 490
Dexter Avatar asked Jul 29 '12 08:07

Dexter


People also ask

How do I find node js version?

To see if Node is installed, open the Windows Command Prompt, Powershell or a similar command line tool, and type node -v . This should print the version number so you'll see something like this v0. 10.35 .

What version of Ecmascript does node use?

Node. js is built against modern versions of V8. By keeping up-to-date with the latest releases of this engine, we ensure new features from the JavaScript ECMA-262 specification are brought to Node.

How do I change node js version?

Switching among Node. 7; we can simply run either nvm use 12.22. 7 or nvm use 16.13. 0 to easily switch into either version we need. Note that since we only have one version that begins with 12, 14, or 16, we can switch versions with a simple nvm use 16 , nvm use 14 , or nvm use 12 command.


1 Answers

Use process.versions. From that page in the documentation:

console.log(process.versions); 

outputs

{ node: '0.4.12',   v8: '3.1.8.26',   ares: '1.7.4',   ev: '4.4',   openssl: '1.0.0e-fips' } 

EDIT: V8 uses the ECMAScript as specified in ECMA-262, 5th edition.

Reference: http://code.google.com/p/v8/

like image 133
Anirudh Ramanathan Avatar answered Sep 24 '22 22:09

Anirudh Ramanathan