Variable becomes undefined when I link its class as a script
I am using javascript and have a map generation class called generate.js,which whenever I link as a script to any HTML file I get the error Uncaught (in promise) ReferenceError: scl is not defined
. From what I can see scl is defined normally, this is especially a problem because I need generate.js for a crucial feature in my website, if you can find what is causing scl to become undefined or how to solve it, I would appreciate it.
Variable becomes undefined when I link its class as a script
I am using javascript and have a map generation class called generate.js,which whenever I link as a script to any HTML file I get the error Uncaught (in promise) ReferenceError: scl is not defined
. From what I can see scl is defined normally, this is especially a problem because I need generate.js for a crucial feature in my website, if you can find what is causing scl to become undefined or how to solve it, I would appreciate it.
Uncaught ReferenceError: function is not defined at HTMLSelectElement.onchange
I’m displaying the movie data that I’ve brought in open api in card format. I’d like to newly arrange them in the order of title a-z and highest stars in drop-down format. However, it does not work when I select another item after the initial card is loaded I thought it was a problem with the function, so I used console.log, but the function works fine.