Why not change this, const getUser = (id, name) => ({ id, username: name }); To this? const getUser = (id, username) => ({ id, username });
You don't need to use Text nodes if you use append instead of appendChild.
In getLength, if bunch is an array, why don't you use bunch.length instead of iterating through it and incrementing a counter?
Instead of using onload, use addEventListener, and instead of className, use classList.
Here is your cross-browser code. Lastly you should convert the for...of loops into traditional loops (inside the window load event) https://pastebin.com/2BYtKTXe
Обсуждают сегодня