Simple JS Question
I have begun renovation of an old website of mine, and I would like some help. I hope to include a "random quote" bar to the side of each page. No problem. I have coded the array and random number and display properties, and everything works fine.
However, as I have it now, the quote array (about 30 quotes so far) is included in the code for each page I wish to include the random quote bar on. This works, but of course makes adding new quotes difficult since I have to go through each page and put them in again and again. I do know Java, but I have very little experience with JS, and I was wondering what JS syntax would give me the ability to access my large quote array from a single file, which I could easily add to seperately. This would allow me to add a quote to this seperate file and as a result each page with the "random quote" function would be able to retrieve the new quotes from that file.
Can JS do this?