Adding multiple CSS styles to HTML elements using JavaScript const addStyles = (el, styles) => Object.assign(el.style,...
Here is the trick to access the swiper.js element which is already present in the website and then modify it instead of creating new instance of...
Sometime, we need GTM object value to manipulate HTML DOM element as per DataLayer value loaded. Here is the trick to pull the data from the Data...
Undefined: It occurs when a variable has been declared but has not been assigned any value. var technology; // not assign any...
Objective - To check whether the current browser tab is active or inactive using javascript Using Page Visibility API: This will work only when user...
Objective- Understanding the prototype in JavaScript with the help of examples Prototypes are the mechanism by which JavaScript objects inherit...