What is the difference between readFile and readFileSync ?

Publié le: 26 février 2023
sur la chaîne: 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.


Sur cette page du site, vous pouvez voir la vidéo en ligne What is the difference between readFile and readFileSync ? durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code with Vishnu 26 février 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 253 fois et il a aimé 4 téléspectateurs. Bon visionnage!