What are you trying to achieve?
I’m working my way through the Make Academy (which is great) I’m on the intermediate modules but still struggling to detect the difference between collections and arrays. I will return to earlier modules and re-visit these concepts but in the meantime does anyone have an explainlikeimfive way of understanding/remembering the difference?
Hey there,
collections are individual bundles of data, an array is a set of collections combined together for bulk processing.
1 Like
A collection
is more or less a bag of information.
Once you have access to it, you can simply just map fields from a module to another.
When it comes to Array
, this object is far more powerful.
You can sort
, order
, list
, filter
without any hassle, which is impossible with a Collection
.
Check out these Courses in the Academy:
It shall help!
2 Likes
Thanks, appreciated. I think a review of earlier Academy modules is required.