var array = {
'Brazilians': ['Thalison', 'Allan'],
'Venezuelans': ['Jaime', 'Andres'],
}
I just learned how to display the array with this:
for (key in array) {
document.write(`${key}: ${array[key]}<br>`);
console.log(`${key}: ${array[key]}`);
}
I hope to get this result with
<ul>
<li>
Brazilians
<ul>
<li>Thalison</li>
<li>Allan</li>
</ul>.....
with- 'Brazilians' and 'Venezuelan', then each of them with their own list
– Thalison Amaral Jun 22 '22 at 18:43