diff --git a/doc/api/process.md b/doc/api/process.md index 7cbc1594d6b98c..a4d51978c1d3ff 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -2445,13 +2445,16 @@ added: v0.1.3 * {string} -The `process.version` property returns the Node.js version string in the form of -`v..`. +The `process.version` property contains the Node.js version string. ```js console.log(`Version: ${process.version}`); +// Version: v14.8.0 ``` +To get the version string without the prepended _v_, use +`process.versions.node`. + ## `process.versions`