How to Get the CSS Top Property Value as a Number Rather Than a String with JavaScript?
Published in
2 min readMar 15, 2023
Sometimes, we want to get the value of the CSS property as a number rather than a string with JavaScript.
In this article, we’ll look at how to get the value of the CSS property as a number rather than a string with JavaScript.