Backend Flashcards
What do severs actually do?
They serve files.
Also they hear requests for the files, and respond to the request.
This means it needs access to the internet. (or local network).
Where are the sever files?
In some sort of storage.
Ex. Hard drive or SSD.
Does JS natively have the ability to listen to the network to access Hard drive or SSD?
No, it does not have access to the files or network.
What is Node.js?
A JavaScript runtime built on Chrome’s V8 JavaScript engine.
This allows JS to have disk and network access.
Leon’s explanation: The same shit that lets you run JS in the browser can now be used to run JS on Severs, Desktops, and elsewhere.
What two things do servers need?
Network (internet, request/response) access.
Storage (ssd/hard drive) access.