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 trial
Derick Browne
Courses Plus Student 6,575 Pointscan someone please help me with this (simple) challenge
Declare an array of Strings named frogNames. Initialize the frogNames array with three frog names using the curly brace syntax we learned in the video. Bonus points* if one of them is Mike! (*Not really.)
Scott Magdalein
2,406 PointsWhich language is this for? In JavaScript, arrays are collections of single datapoints inside square brackets. Curly braces are for objects with typically contain key/value pairs.
1 Answer
Peter LABORDE
2,124 PointsString[] frogNames; frogNames[0] = "Derick"; frogNames[1] = "Mike"; frogNames[2] = "Ben";
Derick Browne
Courses Plus Student 6,575 PointsDerick Browne
Courses Plus Student 6,575 PointsThanks Peter Laborde but I see you forgot the curly brace. Never the less I guess you have an idea. cheers