Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAmal Abualrahi
Courses Plus Student 3,905 PointsWAIT! When to use an array?
Good day,
After watching what is Enum and Structs lesson, Im little confused about when to use an array?
Is the enum a better replacement of an array or what?
Thank you in advance Amal
Andrew Taylor
11,500 PointsAndrew Taylor
11,500 PointsYou would use an Array if you didn't really care about accessing things specifically. So say you just wanted to get a couple of numbers from a user, you could store them in an Array and then loop or them to print them out.