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
Nick Burd
9,419 PointsLine 27 infoWindow
On line 27, set the variable "infoWindow" to a "new google.maps.InfoWindow" passing in an object with the key "content" set to the string of "Magic Kingdom"
var infoWindow = new google.maps.InfoWindow({content: "Magic Kingdom"});
My code doesn't seem to like me...
9 Answers
Nick Burd
9,419 PointsI had the line placed wrong. My apologies.
Juliano Vargas
Courses Plus Student 15,575 Pointsvar infoWindow = new google.maps.InfoWindow({content: 'Magic Kingdom'}); on line 17 works
Nick Burd
9,419 PointsPratibha Soni
7,561 PointsWhy it's not working for me....... my code is same as yours but not working.....
var infoWindow = new google.maps.InfoWindow({content: "Magic Kingdom"});
the bummer I get is: Bummer! You haven't created a 'new google.maps.InfoWindow()' passing the object {content: 'Magic Kingdom'} as an argument
Juliano Vargas
Courses Plus Student 15,575 PointsI have had problems with it also, did you try on line 17?
Tavo Zambrano
5,240 PointsErase the "var" so that it work's. Just like this:
infoWindow = new google.maps.InfoWindow({content: "Magic Kingdom"});
Pratibha Soni
7,561 Pointsmany may thanks for the reply Tavo Zambrano......I have solved this question already....... thanks to all for replies...
Pratibha Soni
7,561 Pointsmany may thanks for the reply Tavo Zambrano......I have solved this question already....... thanks to all for replies...
Steve Leichman
7,008 PointsI got stuck on this too. The instructions are wrong.