
Samier Saeed walks you through the best way to implement a singleton in JavaScript and examines how that has evolved with the rise of ES6.
Samier Saeed walks you through the best way to implement a singleton in JavaScript and examines how that has evolved with the rise of ES6.
Read Improve Your Swift Closures with Result and learn Mobile with SitePoint. Our web development and design tutorials, courses, and books will teach you HTML, CSS, JavaScript, PHP, Python, and more.
Jeff Mott helps you truly master the concept of closures in JavaScript using simple examples, demonstrating how they would be implemented from scratch.
Completing his look at JavaScript's 'this' keyword, Ivaylo Gerchev examines how to use 'this' in callbacks and closures, as well as lexical binding in ES6.
In On Our Radar This Week, Paul gets you up to date with the most interesting conversations that are taking place on the SitePoint forums.
Ivaylo Gerchev examines three of the most important and heavily-used concepts in modern JavaScript development — closures, callbacks and IIFEs
This article is a Learnable video that covers JavaScript variable scope and closures.
Colin Ihrig explains the concept of memoization, which can potentially increase your program's performance by caching the results of previous function calls