WebSockets is a technique for two-way communication over one (TCP) socket using the ws (unsecured) or wss(secured) protocol and can be used by any client or server application. The common use cases includes push notification, chat applications, online multi-player game or any such real-time data sharing…
Default function parameters allow formal parameters to be initialized with default values if no value or undefined is passed. We can use this fact to enforce a required parameter as well.
undefined
crossorigin"
We will try to understand the then and catch methods, which are used to perform some action after the promise is settled. We will also understand the fulfillment value of a promise.
The ‘let’ keyword is introduced in ES6 to declare block scoped variable. The ‘var’ keyword…
A web worker is a JavaScript that runs background in a separate thread and live in a self-contained execution environment, which enables to process heavy computations without blocking the main UI thread.
Web Workers are a mechanism by which a script…