The constructor expects the default value but we are not passing it. So it was throwing undefined error. Now passing NaN as default value.
The constructor expects the default value but we are not passing it. So it was throwing undefined error. Now passing NaN as default value.