const kolory = () => {
const red = Math.floor(Math.random() * 256)
const green = Math.floor(Math.random() * 256)
const blue = Math.floor(Math.random() * 256)
return `rgb(${red}, ${green}, ${blue})`
}
for (let i = 1; i <= 100; i++) {
for (let j = 1; j <= 100; j++) {
const div = document.createElement('div')
document.body.appendChild(div)
const wynik = i * j
div.textContent = wynik
div.style.backgroundColor = kolory()
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
const kolory = () => {
const red = Math.floor(Math.random() * 256)
const green = Math.floor(Math.random() * 256)
const blue = Math.floor(Math.random() * 256)
return `rgb(${red}, ${green}, ${blue})`
}
for (let i = 1; i <= 100; i++) {
for (let j = 1; j <= 100; j++) {
const div = document.createElement('div')
document.body.appendChild(div)
const wynik = i * j
div.textContent = wynik
div.style.backgroundColor = kolory()
}
}