Question from the Node.js test

Explain why the following Node.js (CommonJS) script works: `console.log(__dirname) console.log(process.argv)`

Medium

Let the following Node.js (CommonJS) script be :

console.log(__dirname)
console.log(process.argv)

The 3 global variables

  • console
  • __dirname
  • and process

are available because...

Author: CyrilStatus: PublishedQuestion passed 108 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!