AGAbhishek Guptainabhishekgupta.hashnode.dev·Jan 17, 2022 · 1 min readConvert a string to integer/float using JSHey Guys I found a neat trick to convert a string to an integer/decimal (with fixed values after decimal) using JavaScript. Let's take a string containing a whole number. let numberAsString = "234"; numberAsString = +numberAsString; co...00