Delegates are one of the most used features of C#. They allow you to pass a function as a function pointer. It is kind of the same as a function pointer in C++.
Put simply, delegates are the same as a function pointer in C ++. They refer to another function.
Property Descriptors for Objects in JavaScript
In modern JavaScript, objects are integral, and having a strong understanding of topics surrounding objects is necessary for writing better JavaScript. You can create an object in four ways in JavaScript.
How to Add a Static Member Property in a JavaScript Class
Recently while solving a problem, I came across a requirement to create a property in a JavaScript class, which needs to be shared by all the object instances. In the programming world, these types of properties are called Static Properties.
There are various scenarios when you need a static member property:
Simplifying the Object.assign Method in JavaScript
In JavaScript, an object's assign method copies the source object’s own enumerable properties to a target object and returns that target object.
There are two important keywords in the above sentence: