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