I have two array that contains an integer and strings like this.
let intArr = [4,3,2,1]
let player = ['a','b','c','d','e','f','g','h','i','j']
and the sum of intArr will always be the same as player's length
how do i return return a div as much as each number in intArr with player's value inside the div
expected :
since intArr index 0 is 4, the first div should be like this
<div>
<div> a </div>
<div> b </div>
<div> c </div>
<div> d </div>
</div>
and then for index 1 of intArr which is 3, it should return like this
<div>
<div> e </div>
<div> f </div>
<div> g </div>
</div>
and so on
forloop.