This Weeks Articles
A lot of shiny new features came with the introduction of ES2015 (ES6). One of the features is the addition of let and const which is also used for variable declaration. How are they different from our good old friend var.
By Megha Pathak
Hey, learners and beginners here are my latest post, where we gonna learn about the Page visibility and Full-Screen Mode WEB API. PageVisibility API is used for detecting the visibility of the page. The document object provides properties and event listeners to detect the page visibility. This API is useful for: Handling auto pause & play of video or animations, Avoid playing distracting sounds when a user is not focused on the tab, Stop polling or refreshing data on the page when not visible, Switch image in carousel only when a page is visible