You might be using Number() and parseInt() to convert string to number.
// ❌
let str = '123'
let num = Number(str) // 123
let num2 = parseInt(str) // 123
// ✅
let str = '123'
let num = +str // 123
You might be using Number() and parseInt() to convert string to number.
// ❌
let str = '123'
let num = Number(str) // 123
let num2 = parseInt(str) // 123
// ✅
let str = '123'
let num = +str // 123
For further actions, you may consider blocking this person and/or reporting abuse
Jason Byrne -
satyaprakash behera -
Giovanni Proietta -
Fernando -
Top comments (0)