Question: The purpose is to change the colour of the text in the footer of my Wordpress site. At the footer you can see the color of the text is black and not visible.

Wondering where do you insert the code below to edit in CSS the FLASH themes to change the text color of the footer?

Can't seem to post image, so link of image is [here](https://i.imgur.com/JPkxHLW.png)

On my [Computer Repairs](https://www.chatswoodcomputer.com.au/) website, I've tried addinto into style.css, but nothing seems to change

```
.site-footer {
    color: #fff;
}

```

Was expect the text to be white, but it is still showing up as dark color when adding the code above. Perhaps I'm adding in the wrong section

Answer: 
Build an object with all the year/programs as keys and their latest version as values, then map back to an array of file names:

```js
const fileNames = [
  "2021_Test_V1",
  "2021_Test_V2",
  "2021_Test_V4",
  "2021_Test_V3",
  "2020_Test_V11",
  "2020_Test_V10"
];

const latestFileNames = Object.entries(fileNames.reduce((a, v) => {
  const [yp, version] = v.split(/_V(?=\d+$)/);
  a[yp] = a[yp] && +a[yp] >= +version ? a[yp] : version;

  return a;
}, {})).map(([yp, version]) => `${yp}_V${version}`);

console.log(latestFileNames)
```
One possible solution (maybe not so good in performance) is to use [Array.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter) with a nested [Array.some()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some) to keep only the elements meeting the expected condition. This also assumes that all years uses the four digit format.

```js
var fileNames = [
  "2021_Test_V1",
  "2021_Test_V2",
  "2021_Test_V4",
  "2021_Test_V3",
  "2021_Test_V10",
  "2020_Test_V11",
  "2020_Test_V10",
  "2019_Test_V1"
];

let res = fileNames.filter((str, i, arr) =>
{
    let [year, app, version] = str.split("_");

    return !arr.some(s =>
    {
        let [y, a, v] = s.split("_");
        return y === year && +v.slice(1) > +version.slice(1);
    });
});

console.log(res);
```

```css
.as-console {background-color:black !important; color:lime;}
.as-console-wrapper {max-height:100% !important; top:0;}
```