Question: Which line imports a promise-based version of the readFile method?

  1. const { readFile } = require(fs).promises
  2. const { readFile } = require(fs)
  3. const { readFilePromises: readFile } = require(fs)
  4. const { readFile } = require(promises)

Answer: The correct answer of the above question is Option A:const { readFile } = require(fs).promises