const div = document.querySelector('.container');
const width = div.offsetWidth;
const height = div.clientHeight;
console.log(typeof width, typeof height);WebDEV #test #Frontend
Выберите правильный вариант 👇🏼
WE WebDEV @webb_dev · 8.3K subscribers const div = document.querySelector('.container');
const width = div.offsetWidth;
const height = div.clientHeight;
console.log(typeof width, typeof height);