Answers for "how to numbers in string js"

3

js get number from string

thenum = "foo3bar5".match(/\d+/)[0] // "3"
Posted by: Guest on January-08-2021
8

make number string js

var num = 15;
var n = num.toString();
Posted by: Guest on September-02-2020

Code answers related to "how to numbers in string js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language