Simply do
var width = document.documentElement.clientWidth-2;
No need to add a string, unless you want the result to be a string.
0
solved how to subtract ‘2’ from var width = document.documentElement.clientWidth + ”;? [closed]
Simply do
var width = document.documentElement.clientWidth-2;
No need to add a string, unless you want the result to be a string.
0
solved how to subtract ‘2’ from var width = document.documentElement.clientWidth + ”;? [closed]