Skip to content
Related Articles

Related Articles

Node.js Property

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 12 Oct, 2021

The property is an inbuilt application programming interface of the process module which is used to get the PID of the process.


Return Value: This property returns an integer value specifying the PID of the process.

Below examples illustrate the use of property in Node.js:


// Node.js program to demonstrate the
// Property
// Include process module
const process = require('process');
// Printing property value
console.log("process id is " +;


process id is 11436

Note: The above program will compile and run by using the node filename.js command.


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!