Skip to content
Discussion options

You must be logged in to vote

Hello @maxdporter
nameToFavoriteNumber is a mapping which links to type of data (string and unit) so you are assigning it using the _name as the index and the _favoriteNumber as input. Look at this: https://medium.com/upstate-interactive/mappings-in-solidity-explained-in-under-two-minutes-ecba88aff96e i would help you a lot to understand how it works.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@maxdporter
Comment options

Answer selected by cromewar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants