You should get in the habit of describing your problem - sometimes just figuring out how to explain it will give insight.
In any case:
for(var total = 0 ;total >= myArr.length;total++ ){
You have a couple of issues here:
First of all, are you sure total is what you want to use for your control variable? Usually we use something like “i” for the control variable. You can use other things, but “total” doesn’t make sense here. That should be used for the sum of the numbers, not a counting variable to keep track of which element you are adding.
The other problem is that I think you need to rethink total >= myArr.length - even if you change it to the right variable, I think the logic is wrong.