Skip to content
Related Articles

Related Articles

Web technologies Questions | Node.js Quiz | Set-3 | Question 2

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 30 Sep, 2021

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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!