Before we get into building the blockchain, there are two crucial concepts that we need to familiarize ourselves with. These important concepts are as follows:
- The JavaScript constructor function
- The prototype object
Before we get into building the blockchain, there are two crucial concepts that we need to familiarize ourselves with. These important concepts are as follows:
Becoming familiar with the constructor function is important as we'll be using it to build our blockchain data structure. By now, you must be wondering what a constructor function is and what it actually does.
A constructor function is simply a function that creates an object class and allows you to easily create multiple instances of that particular class. What this actually means is that the constructor function allows you...