const num = parseInt("100")
Instead of using parseInt
or parseFloat
we can use +
operator
const num = +"100"
num + 5
// 105
const num = parseInt("100")
Instead of using parseInt
or parseFloat
we can use +
operator
const num = +"100"
num + 5
// 105