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.
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
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?