What’s the difference between

console.log(process.cwd())

and

console.log(__dirname);

I’ve seen both used in similar contexts.

4 Answers
4

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *