Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The message "Range out of order in character class" in JavaScript is an error that occurs when a range in a regular expression character class is specified in an incorrect order. The range in a character class is defined by two characters separated by a hyphen, and it should always have the smaller character first and the larger character last. When the order of the two characters is reversed or if there is a mistake in specifying the range, this error occurs.