Looking to display multiple blocks in HTML using a JavaScript array. The array contains names such as:
var name=['amit','mayank','jatin'];
. I need to repeat a certain portion of code in order to show the elements of the array, with 10 names fetched from the backend.
<div class="limiter">
<div class="container-table100">
<div class="wrap-table100">
<div class="table">
<div class="row header">
<div class="cell">
Rank
</div>
<div class="cell">
Name
</div>
<div class="cell">
Quiz Name
</div>
<div class="cell">
Scores
</div>
</div>
//repeat below code for each name in the array
<div class="row">
<div class="cell" data-title="Full Name">
1
</div>
<div class="cell" data-title="Age">
Amit Singh
</div>
<div class="cell" data-title="Job Title">
Python Quiz
</div>
<div class="cell" data-title="Location">
100
</div>
</div>
//till here
</div>
</div>
</div>
</div>