I want to know that there are how many ways in JS to create sub tags and their classes names from a given array eg array =['one','two','three','four','five'].
If I be more specific I have already created main tags ie <li class="card"></li>............<li class="card"></li> of class deck through JS
`let displayCards = document.querySelector('.deck');
for (i=0; i < symbols.length; i++) {
let cards = document.createElement('li');
cards.classList.add('card');
displayCards.appendChild(cards);
}`
this is the end result I want:
<ul class="deck">
<li class="card">
<i class="one"></i>
</li>
<li class="card">
<i class="two"></i>
</li>
<li class="card">
<i class="three"></i>
</li>
</ul>
SO...How many ways to create sub-tags and sub-classes of all class card of above mentioned array.
Many Thanks
<ul class="deck"> <li class="card"> <i class="one"></i> </li> <li class="card"> <i class="two"></i> </li> <li class="card"> <i class="three"></i> </li> ..................... /ul>