| Availability: |
| ||||
| Inherits from: | Error object | ||||
| JavaScript syntax: | N | myError = new TypeError() | |||
| N | myError = new TypeError(aNumber) | ||||
| N | myError = new TypeError(aNumber, aText) | ||||
| Argument list: | aNumber | An error number | |||
| aText | A text describing the error | ||||
This sub-class of the Error object is used when an exception is caused by an operand having an unexpected data type.
| Prev | Home | Next |
| Type conversion | Up | typeof |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. | ||