The fs module provides both synchronous and asynchronous methods, identified by the ______ suffix for synchronous methods.

  • async
  • sync
  • synchronous
  • await
In the fs module of Node.js, synchronous methods are identified by the Sync suffix. For example, fs.readFileSync is a synchronous method for reading files, whereas asynchronous methods do not have this suffix.
Add your answer
Loading...

Leave a comment

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