[Solved] how to subtract ‘2’ from var width = document.documentElement.clientWidth + ”;? [closed]

[ad_1]

Simply do

var width  = document.documentElement.clientWidth-2;

No need to add a string, unless you want the result to be a string.

0

[ad_2]

solved how to subtract ‘2’ from var width = document.documentElement.clientWidth + ”;? [closed]