Code to go logo
Created using Figma
Use Cases
Contribute
How to convert string to number in JavaScript
Numbers
By Jad Joubran ·
Last updated Nov 11, 2017
Number.parseInt("24", 10);
24
Nov 11, 2017
1
Jad Joubran
See answer
1
Jad Joubran
Number.parseInt
on MDN
Learn JavaScript step by step