Why does the function below return “NaN”?
I have done some research and understand NaN (Not a Number) is returned if the first character cannot be converted to a numb