Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

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

  • Last Updated : 30 Sep, 2021

How we find the relative path from a given path to another path based on the current working directory ?
(A) path.relative()
(B) path.parse()
(C) path.absolute()
(D) path.imaginary()


Answer: (A)

Explanation: The path.relative() method is used to find the relative path from a given path to another path the given path is the same then it converts the zero-length string the main advantage is it is based on the current working directory.

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!