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

polentz
seal-mask
.a{fill-rule:evenodd;}techdegree
polentz
Full Stack JavaScript Techdegree Student 11,751 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

jamesjones21
jamesjones21
9,248 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.

https://w.trhou.se/cnb6xugbfr

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