Destructuring assignment is a javascript expression that helps extract out data from objects and arrays. Destructuring allows us to reduce repetitive code by assigning multiple variables at a time and simplifying the syntax. This can be used with objects or arrays, even their nested structures.
Graphs consist of nodes(vertices) and edges. Edges show us which nodes are connected and how they are connected. Graphs are used to help us in a variety of scenarios and applications. For instance, they can be useful in representing networks or in social media (or dating) applications to find the closest connections. Networks such as maps can use graphs to determine the shortest or fastest routes to a destination. In social media platforms, a node can represent a person; it would contain all of the person’s data such as bio, age, name, profile picture and each connection to another person would be an edge.
Design patterns are solutions to common problems that have been compiled by developers over the years. The strategy design pattern are classes that extend the functionality of another class. It is implemented in a modular way so that adding or removing functionality is flexible. For example, it can be a toy dog that has different card slots that allow for different functionality such as barking, jumping, eating, and walking. The cards would be interchangeable and we would switch them out when we want to change the dog’s behavior.
Boolean Short Circuit
React components are modular, reusable bits of code. There are two types of components, class and functional components. These two components differ not only in their boilerplate, but also have different use cases. Class components extend the Component class, which allows the component to have state, utilize lifecycle methods, and contains a render method. In contrast, functional components are stateless, cannot utilize lifecycle methods, and do not contain a render method. Functional components are favored when changes in state are not needed to keep the component