ExpressJS Tutorial 17: Simple HTML Server - Part 2

preview_player
Показать описание
Learn how to create a simple server serving HTML files with ExpressJS.

Рекомендации по теме
Комментарии
Автор

That might be the good example for synchronous vs asynchronous when you write fs.statSync() rather than fs.Sync() .

Here synchronous function fs.statSync() has to block remaining javascript code until finding whether file exists or not.

Thank You !!

webapplicationguide
Автор

Hi Mehul! Can you please explain "statsSync()" in the line no.16.
what does it do?

prasadankit
Автор

Hey, it doesn't working for me: I got this: Listen port 1337

error!. I put a console.log('error!') in the catch session. What's the matter?

PabloBvch
Автор

how to move back to parent folder in path module

AshishKumar-rfqw
join shbcf.ru