How to Get an Integer from HTML in JavaScript [closed]

I’m trying to use JavaScript to get a number from my html using document.getElementById().value but I’m getting the whole thing (i.e 52 instead of just 52. Any tips on how to get this would be greatly appreciated

The only variations I know to try are adding .value at the end of the getElementById() or leaving it off

I just need to know how I can get the integer value of the element in the html instead of the whole tag.