Table of Contents | Previous | Next | Index


New Features in this Release

Changes to the Array object.

  • Changes to the Date object.
  • Changes to the Function object.
  • Changes to the String object.
  • New method toSource. The toSource method returns a string representing the source code of the object. See Array.toSource, Boolean.toSource, Date.toSource, Function.toSource, Number.toSource, Object.toSource, RegExp.toSource, and String.toSource.
  • New top-level properties Infinity, NaN, and undefined. Infinity is a numeric value representing infinity. NaN is a value representing Not-A-Number. undefined is the value undefined.
  • New top-level function isFinite. isFinite evaluates an argument to determine whether it is a finite number.
  • Changes to the top-level eval function. You should not indirectly use the eval function by invoking it via a name other than eval.
  • New strict equality operators === and !==. The === (strict equal) operator returns true if the operands are equal and of the same type. The !== (strict not equal) operator returns true if the operands are not equal and/or not of the same type. See "Comparison Operators" on page 635 and "Using the Equality Operators" on page 637.
  • Changes to the equality operators == and !=. The use of the == (equal) and != (not equal) operators reverts to the JavaScript 1.1 implementation. If the two operands are not of the same type, JavaScript attempts to convert the operands to an appropriate type for the comparison. See "Using the Equality Operators" on page 637.
  • Changes to the behavior of conditional tests.
  • The JavaScript console. The JavaScript console is a window that can display all JavaScript error messages. Then, when a JavaScript error occurs, the error message is directed to the JavaScript console and no dialog box appears. See the Client-Side JavaScript Guide for details.

  • Table of Contents | Previous | Next | Index

    Last Updated: 05/28/99 11:58:55

    Copyright (c) 1999 Netscape Communications Corporation