check if a string has any numbers in it in javascript code example Example: how to check if all characters in string are same python s == len(s) * s[0]