Monthly Archives: March 2022

 JavaScript Closures

A closure is a combination of a function bundled together (enclosed) with references to its surrounding state (the lexical scope). Lexical scoping The stance of a variable asserted in the source code denotes its scope in syntactic figuring. For example:

In this example: The variable name is a global variable. It can be accessed Continue Reading »

Dark Mode in iOS

Dark Mode was revealed at WWDC 2019 and debuted with iOS 13. It gives iOS a darker look. The appearance of Dark Mode is determined by trait collections. When a user modifies the system’s look, the system requests that all windows and views redraw their contents. Without any additional logic, UIKit controls support it out Continue Reading »

Interceptor in Angular

What is an interceptor in angular? Interceptors are a unique type of Angular Service that we can implement. Interceptors allow us to intercept incoming or outgoing HTTP requests using the HttpClient. By intercepting the HTTP request, we can modify or change the value of the request. Interceptors are basic building blocks for Angular service so Continue Reading »

Higher-Order Components

Higher-Order Components are what they sound like. A function that takes a component and returns a replacement component is an example of a higher-order component. Higher-Order Components in React may be a pattern that stems from React’s nature, which favors composition over inheritance. Consider the following scenario: In the preceding example, a higher-order component could Continue Reading »