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 Displaying the Content

Full Stack JavaScript Techdegree Student 11,755 Points

It seems that on Chrome 76 this solution is not working

It seems that on Chrome 76 this solution is not working. The solution adopted by the instructor is not immediately easy-to-understand and in Chrome 76 it does not work.

the array method map returns a new array, and this array is assigned to the variable "options". Then, the array is assigned to the innerHtml of the "select" element. This does not work.

Is there a reason? I changed the solution and used the same approach as in the generateHtml function by creating an html variable and iterating over the array with forEach and it works.

Thanks in advance

9,260 Points

Can you show your code? This will help us to look into the issue you are facing.

1 Answer

Here is a snapshot with the code from the video that I successfully tested with Chrome 76.


Can you post a snapshot where it doesn't work? Is there anything in the console?