Const
The major Node.js version number.
Useful for runtime checks, feature gating, or conditional behavior.
The major version as a number.
console.log(NODE_MAJOR_VERSION); // 25 Copy
console.log(NODE_MAJOR_VERSION); // 25
The major Node.js version number.
Useful for runtime checks, feature gating, or conditional behavior.