Web technologies Questions | Node.js Quiz | Set-3 | Question 3
How do we get the filename portion of a path to the file in Node.js ?
Explanation: The path.basename() method in node.js is used to get the filename portion of a path to the file. This directory was ignored when using this method. It takes a two-parameter as path and extension.
Quiz of this Question
Please comment below if you find anything wrong in the above post