Too Long; Didn't Read
In Solidity when you want to store a collection of data you can use array or mapping. In this article, I will show you how to create a mapping and how to add keys and values using the constructor function. The constructor function allows you to add a key and a value using the same syntax as the array function. In the following article, we will deploy our simple smart contract in Remix to see how it works using mapping. You can think about this table as a key-value pair relationship where you can find a unique set of “keys” that correspond to a unique value.