• +91 9723535972
  • info@interviewmaterial.com

NodeJS Interview Questions and Answers

Question - How to get information about a file in Node.js?

Answer - The fs.stat function is used to get the required information from a file. The syntax is as follows: fs.stat(path, callback) where, • Path is the string that has the path to the name • Callback: The callback function where stats is an object of fs.stats Next up on these Node js interview questions, you need to understand about DNS lookup.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners