Share:
Notifications
Clear all

Earn While Learning Web3 Programming>> Start Here FREE!!!

[Solved] Intro To Mapping In Solidity - Web3 Programming

1 Posts
1 Users
2 Reactions
498 Views
1
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
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;

Share: