Liked posts

Reported posts

JavaScript/Event Loop/Storage Details

How does JavaScript work?

Javascript File Convert In Machine Language Many difference Off JavaScript Engine.... Most Popular Faster Engine (V8 Engine) It's Make By Google Convert Javascript File 💫 Parser ➡ AST ➡ Interpreter ➡ Binary ➡ Computer 💻 / (🟚JS File ➡ (Parser ➡ Compiler ➡ V8 Engine ) ➡ 💻) javascript is a clint-side scripting language. client-side scripting language means that it runs at the client-side(or on the client machine) javascript Engine V8,Chakra,JavaScript Core, Spidermonkey

What does JavaScript event loop do?

The (Event Loop) is the secret behind javascript asynchronous programming. JS executes all operations on a single thread, but using a few smart data structures, it gives us the illusion of multi-threading.. The Call Stack is responsible for keeping track of all the operations in line to be executed. Whenever a function is finished, it is popped from the stack. TheEvent Queue is responsible for sending new functions to the stack for processing. it follows the queue data structure to maintain the correct sequence in which all operations should be sent.. The Call Stack , the API starts its own single-threaded operation.

What's the difference between local storage and session storage?

The Storage interface of the Web Storage API provides access to a particular domain's session or local storage. it allows, for example, the addition, modification, or deletion of stored data items. local storage and sessionStorage are almost same .Both have the following rules: ✳ They store ky/value pairs for a particular domain. ✳ They values stored may only be stings. ✳ They have a limit of around 5MB of storages space. the one major difference between localStorage and sessionStorage is the expiration date. localStorage: The browser is closed and reopened,the storage is saved. There is no expiration. sessionStorage: is cleared when the page session ends. this creates a new session and new storage.