Introduction to JSON

JSON (JavaScript Object Notation) is a format to represent data, even though it has JavaScript in its name, it is language independent. 

JSON is simply a collection of name/value pairs, In this blog post, we will focus on JSON in JavaScript.

Read more

Promise – finally

The finally method of a Promise  allows you to execute code after a promise has been settled. If the promise succeeds or fails the finally method is called. This is useful if you want to run some code regardless of the outcome of the promise. The promise finally method is similar to the finally method in a try catch finally block.

Read more

Async Await

Previously we had a small introduction on Promises which are used in asynchronous events and getting data after an event occurs, Async Await is a JavaScript API that allows you to write asynchronous code in a synchronous manner so that your code is easier to read and debug.  

Async Await is just different syntax for using Promises, they use promises in the background. Most browsers support Async Await, you can get the full list here.

Read more

Page Visibility API

The Page Visibility API tells you if the current page is visible or not and also informs you when the page becomes hidden or visible.  This API is supported in almost all browsers, you can find the full list here. Uses Before we go into the details of the API, it is helpful to know why … Read more

Picture-in-Picture (PiP) API

One of the newer browser features is the Picture-in-Picture API which allows you to play your video in a small re-sizable, movable overlay video element so that you can continue to watch your video even after you change tabs or minimize the tab containing the video.

Read more