I am trying to change an array value thats inside of a function of my button. I want the first number in the array to change but can't seem to get it working
So i want my HTML to go from this:
<button onclick="skillUpgrade([50,5])">Upgrade your skill</button>
To this:
<button onclick="skillUpgrade([55,5])">Upgrade your skill</button>
Here is my javascript
function skillUpgrade(el) {
  roundDown = Math.floor(money / el[0]);
  if (memes >= el[0] * checkTimes) {
    baseClicks = baseClicks + (el[1] * checkTimes);
    money = money - (el[0] * checkTimes);
    newPrice = el[0] * 1.1;
    el[0] = newPrice;
    console.log(el[0])
    document.getElementById("moneyAmount").innerHTML = money;
  }
}
 
    