how to set the width of scrole bar in js 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;