I’m struggling with getting this to load to the console and I think it’s because the helper function getSelectedGenre() isn’t actually being recognized in main.js. There are a few dots under the first few letters of the function call which usually means that it hasn’t been initialized.
This is a helper function that was created in the helper.js file so I’m confused as to why it’s not being recognized in main.js.
Is there anything extra I am supposed to do to be able to use this function? There’s no indication that it needs to be exported/imported.
Here is the link to the project. If anyone could give me any pointers that would be awesome.
The export fixed it, thank you!
I’m having the same problem and seem to break my work with the drop down menu when I attempt to export and import getSelectedGenre from helpers.js. Any pointers on how to do this correctly would be great. I’m currently getting ‘SyntaxError: Unexpected end of JSON input’ when I check the console.