javascript
Published on January 26, 2024By DeveloperBreeze
// Import 'path' module
const path = require('path');
// Construct a file path using 'path.join'
const filePath = path.join(__dirname, 'files', 'example.txt');
// Log the generated file path
console.log('File Path:', filePath);
Comments
Please log in to leave a comment.