File Watching with

0.0% Acceptance

In this lab, you will create a simple file watcher using the function provided by the 'fs' module in Node.js. This function will watch a file for changes and print a message 'File Changed' to the console whenever the file is modified.

You will have to implement the 'watchFile' function, which takes a single parameter 'filePath' to set the path of the file to be watched. Remember to export 'watchFile' using ESM syntax.