JavaScript Displaying the Content

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