I am making a trivia game similar to what jackbox.tv does and I am trying to figure out the logic I need in order to increment the progress bar by percentage when a player answers the question correctly (I wanna say like +10% for each correctly answered question). I posted some example logic but I don't think it's functional nor the best way to write it.

```
<script>
  $(document).ready(function () {
    users= [{}];

    // This is the example logic for the animation:

    for(let i = 0; i < users.length; i++) {
      let wid = (users[i].score)*1%
      $('.player1').animate({ width: wid }, 2000)
    }

    $('.player1').animate({ width: '90%' }, 2000);
    $('.player2').animate({ width: '75%' }, 2000);
    $('.player3').animate({ width: '50%' }, 2000);
    $('.player4').animate({ width: '70%' }, 2000);
    $('.player5').animate({ width: '45%' }, 2000);
  });
</script>

```