JScript  

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