Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

Customizing the Map Markers task 1/2 - In app.js, on line 16, set the variable "markerImage" to "baby-cupcake.png"

Good day all, I have some difficulties with the first code challenge. The code added is the following:

var markerImage = "img/baby-cupcake.png";

Unfortunately is not working and I get the following message :

Bummer! The string 'baby-cupcake.png' hasn't been assigned to the 'markerImage' variable.

Does anybody have a better idea? it seems a very simple task but I may have missed something.

Thank you

4 Answers

Solved!! The right code is: var markerImage = "baby-cupcake.png";

James Barnett
James Barnett
39,199 Points

@Giuseppe - +1 for solving your own problem :star:

Thank you James.

Yay! Great job Giuseppe! :D