I can't get whatever functions I store within the script.js file to work in the html. Plz help.
If I create a new script tag to call the functions in, I think there's an error with scope. Otherwise I just don't get an output. If I don't use my custom functions but paste the code from the custom functions straight into the script tag it works fine. I really need help. My eventual plan is to create a library filled with visual commands and other useful functions, but I can't get custom-libraries to import correctly or something...
Because you added a
script.js, any code inside the script won't run. You will have to either: split into a new script tag, or create a new file.
- new script tag
- new file
create a new
and inside, put whatever code you need, like:
then in your HTML: