“Cancelable” Smooth Scrolling

cancelable-smooth-scrolling

Here’s the situation: Your site offers a “scroll back to top” button, and you’ve implemented smooth scrolling. As the page scrolls back to the top, users see something that catches their eye and they want to stop the scrolling, so…

Demystifying JavaScript Variable Scope and Hoisting

6-trends-in-the-it-support-industry-for-2021-and-beyond

Storing values in variables is a fundamental concept in programming. A variable’s “scope” determines when it is and isn’t available throughout your program. Understanding variable scope in JavaScript is one of the keys to building a solid foundation in the…