Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyNodeJSpath and __dirnameSingle-choice MCQ

For a file at /app/src/index.js, what does this produce on a POSIX system?

const path = require('node:path'); // file: /app/src/index.js console.log(path.join(__dirname, '../config', 'db.json'));