И
Size: a a a
YJ
YJ
КК
JS
JS
JS
JS
КК
JS
IS
𝐓
moves.innerHTML = "";
pokemonMoves.map((p) => {
let li = document.createElement("li");
li.innerHTML = p.move.name;
moves.appendChild(li);
});
Вот так сделал, вроде все нормально работает, дело в том, что в pokemonMoves входит 4 объекта из более 10-70 штук, и дальше я передаю их в liIS
const movesElements = pokemonMoves.map(
({ move: { name } }) => Object.assign(document.createElement("li"), { textContent: name })
);
moves.append(...movesElements);
•
IS
КК
D
IS
IS