Apr 9, 2025 · 7 min read · In our previous article in the series here, I got a comment on a code snippet I used which made use of closures which reminded me that it is an often confusing part of JavaScript, which then inspired this article. JavaScript developers often face the...
Join discussion
Aug 11, 2024 · 13 min read · Understanding Encapsulation and Data Hiding Encapsulation is a core concept in object-oriented programming (OOP) that involves bundling data and methods that operate on the data into a single unit called a class. This concept is designed to restrict ...
Join discussion
Jun 16, 2024 · 4 min read · Introduction to Encapsulation Encapsulation is one of the main pillars of object oriented programming. It is a process of hiding a data member by declaring it as a private data member thereby enhancing its security. Private data members can only be a...
Join discussion
Nov 25, 2022 · 7 min read · We spoke all about arguments and parameters in the previous article. Let us now explore a concept that many find confusing the first time they hear about it- closures. What is a Closure? The definition that you won't understand "A closure is an expre...
Join discussion