Почему не засчитывается задание:
<html>
<head>
<title>Birds</title>
</head>
<body>
<script>
const birds = {
"North American Birds": [
"Abert's Towhee",
"Acadian Flycatcher",
"Acorn Woodpecker",
"Bendire's Thrasher",
],
"European Birds": [
"Taiga bean goose",
"Lesser white-fronted goose",
"Tundra swan",
"Barrow's goldeneye",
],
};
const h3Arr = Object.keys(birds);
const liArr = Object.values(birds);
for (var i = 0; i < h3Arr.length; i++) {
const h3Element = document.createElement("h3");
document.body.append(h3Element);
h3Element.innerHTML = h3Arr[i];
const ulElement = document.createElement("ul");
document.body.append(ulElement);
for (var j = 0; j < liArr[i].length; j++) {
const liElement = document.createElement("li");
document.body.append(liElement);
liElement.innerHTML = liArr[i][j];
}
}
</script>
</body>
</html>```
Рез-т теста:
[upl-image-preview url=https://ru.coderslang.com/assets/files/2022-01-19/1642619209-119308-image.png]
Рез-т в браузере:
[upl-image-preview url=https://ru.coderslang.com/assets/files/2022-01-19/1642619239-995389-image.png]
Спасибо