Web technologies Questions | Node.js Quiz | Set-3 | Question 2
Which method in Node.js are used to get system uptime in seconds ?
(A) os.freemem()
(B) os.uptime()
(C) os.getPriority()
(D) os.homedir()
Answer: (B)
Explanation: The os.uptime() is the method in Node.js that is used to get system uptime in seconds. This method does not accept any parameters.
Quiz of this Question
Please comment below if you find anything wrong in the above post