Share via


Number expected

You attempted to invoke the Number.prototype.toString or Number.prototype.valueOf method on an object of a type other than Number. The object of this type of invocation must be of type Number.

To correct this error

  • Only invoke the Number.prototype.toString or Number.prototype.valueOf methods on objects of type Number.

See also

Number Object
number Property (Error)