How to converting string number to number without parseInt or parseFloat

Heru Hartanto - Jul 20 '21 - - Dev Community
const num = parseInt("100")
Enter fullscreen mode Exit fullscreen mode

Instead of using parseInt or parseFloat we can use + operator

const num = +"100"
num + 5 
// 105
Enter fullscreen mode Exit fullscreen mode
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player