javascript scrollwidth code example
Example: javascript get srollwidth
const box = document.querySelector('.box');
const scrollbarWidth = box.offsetWidth - box .clientWidth;
const box = document.querySelector('.box');
const scrollbarWidth = box.offsetWidth - box .clientWidth;