Development Flashcards
Authentication vs Authorization
Authentication is verifying the user’s identity. Eg: We verify the user is legit by matching their password.
Authorization determines what the user can access.
sessionStorage vs localStorage vs Cookies
Persistence: localStorage data are stored indefinitely, cookies are set to expire in a defined amount of time and sessionStorage data is deleted once the tab is closed.
Size: cookies can store only small amount of data (about 4kb) whereas, sessions can store large amount of data.
Cookies are automatically sent in every http request to the server. Whereas the session data are availabale to only client side scripts
Containers vs VM
asca
component lifecycle stages
initialization, mounting, updatation, unmount
first contentful paint
is the time delay between the first request that a user made to the backend and the first component mounting/displayed on the UI
hydration
the event at which the client-side JavaScript is loaded- that enables us to interact with html components- like clicking a button, opening a dropdown…
service worker
allows working out of the main thread
What is DOM
Document Object Model provides an interface to access and modify documents. Documents like HTML, XML…
Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document