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

Given the file is at /app/src/server.js, what does path.join(__dirname, 'config.json') produce?

const path = require('path'); console.log(path.join(__dirname, 'config.json'));