Open In App

Web technologies Questions | Node.js Quiz | Set-1 | Question 10

Which below method is used to check whether the given path is an absolute path or not in Node.js ?
(A) path.Query()
(B) path.render()
(C) path.isAbsolute()
(D) path.Absolute()

Answer: (C)
Explanation: The path.isAbsolute() tell the path is absolute or not. It needed complete detail to locate the file. It accepts a single parameter A. The return value in this method specifies the path is absolute or not if it returns false as a value it means that path ios on zero-length.
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :