How Can You Access External JavaScript Arrays In An Html File?
I'm creating a website for a school project with different arrays of facts. I created multiple files with different JavaScript facts arrays and am trying to call them in the index.
Solution 1:
The script needs to reference a JavaScript file, not an HTML file containing a function. Move the function into its own file and include it in the pages as needed.
<script src="EllaFactsArray.js" type="text/javascript"></script>
Post a Comment for "How Can You Access External JavaScript Arrays In An Html File?"