Let us imagine i sent you to the shops without saying anything and you too your bag of sweets and went there and then you returned with nothing, that is the Each() function.
But the Map() function i send you to the shops with your own bag of sweets and told you to return with another bag of sweets (it doesen't matter if it's diffrent from the one you have) and you went and bought a new one but weren't allowed to eat from the old one, you were allowed to eat from the new one only.
So just to recap Each() function you go with a bag of sweets and comeback without buying anything,
and the Map() function you go with the bag of sweets and buy another one and eat the new one without touching the first one.
UNDERSTOOD.
Sofian SALEH
No comments:
Post a Comment