What is the difference between readFile and readFileSync ?

Published: 26 February 2023
on channel: Code with Vishnu
253
4

For more details go through video .
readFileSync() is synchronous and blocks execution until finished. These return their results as return values. readFile() are asynchronous and return immediately while they function in the background. You pass a callback function which gets called when they finish.


On this page of the site you can watch the video online What is the difference between readFile and readFileSync ? with a duration of hours minute second in good quality, which was uploaded by the user Code with Vishnu 26 February 2023, share the link with friends and acquaintances, this video has already been watched 253 times on youtube and it was liked by 4 viewers. Enjoy your viewing!