javascript get window scrollbar 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;