MM
Подскажите, возможно ли запускать функцию, каждый раз когда увеличивается количество элементов <li></li> в списке <ul></ul>?
Size: a a a
MM
ИМ
MM
V
N
AH
OS
V
N
AH
V
VL
VS
VL
OS
A

OS

const getRandomColor = () => {
const getRandomColorValue = () => Math.floor(Math.random() * 256);
const convertTo16 = n => n < 16 ? '0' + n.toString(16) : n.toString(16);
const getHexColor = () => convertTo16(getRandomColorValue());
const r = getHexColor();
const g = getHexColor();
const b = getHexColor();
return "#" + r + g + b;
};A
const getRandomColor = () => {
const getRandomColorValue = () => Math.floor(Math.random() * 256);
const convertTo16 = n => n < 16 ? '0' + n.toString(16) : n.toString(16);
const getHexColor = () => convertTo16(getRandomColorValue());
const r = getHexColor();
const g = getHexColor();
const b = getHexColor();
return "#" + r + g + b;
};VL
OS