Lesson 2: why do we map outside the array? #1375
Answered
by
Noveleader
ZaynTawfik
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
Noveleader
Apr 6, 2022
Replies: 1 comment 2 replies
-
|
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
cromewar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Peopleis a struct and with auint256and astringand this struct is pushed into the arraypeople, hence creating a2D array.and mapping indicates its key as name
stringand value asuint256