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

JavaScript

Line 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

I had the line placed wrong. My apologies.

var infoWindow = new google.maps.InfoWindow({content: 'Magic Kingdom'}); on line 17 works

Why 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

I have had problems with it also, did you try on line 17?

Erase the "var" so that it work's. Just like this:

infoWindow = new google.maps.InfoWindow({content: "Magic Kingdom"});

many may thanks for the reply Tavo Zambrano......I have solved this question already....... thanks to all for replies...

many may thanks for the reply Tavo Zambrano......I have solved this question already....... thanks to all for replies...

I got stuck on this too. The instructions are wrong.