Skip to content

Tag: google-chrome-extension

Using a variable in place of an array

I have a number of arrays I’m using for my first Chrome extension. I want to use a different array for my extension depending on what a value is in a specific variable (locationVal), which is a number between 1-4. Here is the function that decides that: The firstList, secondList, etc. are my arrays, whi…