On my Firefox web console, I enter the following JS
const scoreTierMins = [90, 70, 50, 30, 10, 0];
const pctScore = 75;
I want to find the index of the first element in the "scoreTierMins" array that is greater than or equal to "pctScore". So I tried this
scoreTierMins.findIndex(function(el) {el >= pctScore});
but I get the result "-1". What else am I missing? Shouldn't the result be "1" because "70" is the first element that matches the condition?
return.scoreTierMins.findIndex(el => el >= pctScore)