Node.js Code Completion Easy +10 XP
Path Join
Complete to safely join file paths.
Node.jsFill in the blank
const filePath = path.___(Type the missing code
Show answer and explanation
Answer: join
path.join() safely combines path segments using the OS-appropriate separator, preventing manual string concatenation errors.
Hint: Which path method joins path segments?
What this challenge tests
Code Completion in Node.js: path, fs.