OS
Size: a a a
OS
S
V
ИЛ
OS
ИЛ
М
document.querySelector('body').addEventListener('click', (e) => {
if (e.target.classList[0] === "hello") {
e.target.children[0].style.backgroundColor = "green";
}
});
document.querySelectorAll('.hello').forEach(el => {
el.addEventListener('click', (e) => {
if (e.target.classList[0] === "hello") {
e.target.children[0].style.backgroundColor = "green";
}
});
})
VS
ИЛ
A
IB
IB
OS
Y
const date = new Date();
const dateInMs = date.getTime();
const dateInSec = dateInMs * 0.001;
VS
const date = new Date();
const dateInMs = date.getTime();
const dateInSec = dateInMs * 0.001;
Y
К
window.scrollTo(x,y)
AL
К
{"scrollX":0, "scrollY":500}