JavaScript Treehouse Club - MASH MASH - JavaScript Stuff You Can Change

My answer bubble won't appear!


I wanted to add six more questions to the code to make it interesting. However, when I hit the "Tell Me My Fortune" button, the text box does not come up. I probably made a typo, so could anyone look to see where my code went wrong?

Workspace snapshot:

Thanks a lot! Alp

1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse Staff

Hi there! You have exactly two typos and they are very close together. Essentially, you left out two commas which are causing syntax errors and your code is no longer able to be run.

On the ends of line 77 and line 80, you forgot the ending comma.

// Line 77
// You typed
'location': get_answer('location')

// It should be
'location': get_answer('location'),
// Line 80
// You typed
'sons': get_answer('sons')

// It should be
'sons': get_answer('sons'),

Hope this helps! :sparkles: