check node version

JavaScript
node -vnode -v

OR

node --versionnode --version  
//or
node -v

//v12.15.0npm -vnode --version
Source

Also in JavaScript: