Node.js Basics Module #51 Flashcards
How can you install Node.js?
Visit https://nodejs.org/en/download/
Or on a mac using terminal brew install node
What is the main advantage of using Node.js as a server side language?
You don’t have to relearn a new language.
What technology runs Google Chrome?
Node.js
Is it common to see the call stack blocked by code from a node library?
No. Because A Node.js app is run by a single process, without creating a new thread for every request. Node provides a set of asynchronous I/O primitives in its standard library that will prevent JavaScript code from blocking and generally, libraries in Node.js are written using non-blocking paradigms, making a blocking behavior an exception rather than the normal.
What happens when Node.js needs to perform a network call, or access a database or the filesystem?
Instead of blocking the thread Node.js will resume the operations when the response comes back, instead of wasting CPU cycles waiting.