Earn While Learning Web3 Programming>> Start Here FREE!!!
Solidity Developers Forum
1
Posts
1
Users
2
Reactions
498
Views
1
25/10/2021 9:43 am
Topic starter
EXERCISE:
i. What Is Mapping In Solidity?
ii. How Do You Use It?
iii. How Do You Declare Mapping in Solidity?
v. Post in this forum:
NOTE:
This Is An Exercise From Our FREE Smart Contract Development With Solidity For Beginners Course (If you have not enrolled yet, you can join the course totally for FREE).
1 Answer
1
25/10/2021 9:47 am
Topic starter
Mapping is written in solidity as:
mapping (keyDataType => ValueDataType) mappingName;
//Example of Balance mapping address to their respective balance
mapping (address => uint) Balance;