const flag = document.querySelector('.flag');
russianFlag = () => {
for (let i = 0; i < 1200; i++) {
const p = document.createElement('text');
p.textContent = 'O';
p.style.color = 'white';
flag.appendChild(p);
}
for (let i = 0; i < 1200; i++) {
const p = document.createElement('text');
p.textContent = 'O';
p.style.color = 'blue';
flag.appendChild(p);
}
for (let i = 0; i < 1200; i++) {
const p = document.createElement('text');
p.textContent = 'O';
p.style.color = 'red';
flag.appendChild(p);
}
};
russianFlag();