A service worker is a browser API. It is a script which runs in background by the browser that allows you to cache the assets, handle push notifications, background sync and more. With the help of service workers you can make your page available even if you are offline.


Hoisting refers to visibility of a variable at the beginning of the scope even though its declaration may happen further down in the scope. So, even though the declaration of a variable or a function is not at the beginning of the scope but somewhere down the line, it will…

What is Scope?

Scope is the current context of execution. It determines the accessibility of variables and functions in a particular part of code. Scope is controlled entirely by the placement of functions, blocks, and variable declarations, in relation to one another.

Scope in JavaScript is determined at compile time…

ashima mahajan

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store