OneCompiler

Knowing the NodeJS version programatically

190

If you want to know the NodeJS version on which your code is running programatically, then you can use the process.version to show that.

console.log(process.version); //v12.13.1