Missing word

Report a typo

What is missing in this code? Write one word.

const { readFile } = require('node:fs/promises');

const read = async(path) => {
   try {
      const result = readFile(path);
      console.log(result);
   }
   catch (err) {
      console.log(err);
   }
};

read('happy-file.txt');
Enter a short text
___

Create a free account to access the full topic