how to find a number in the string in js code example Example: how to find number in string javascript var str = 10