javascript get the total scrollable width 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;