There have been quite a few changes between Navigator 2.0 and
Others are the addition of new objects, the implementation of
LiveConnect, and changed functionality in existing objects. The
changes are listed below. Details can be found on the various
reference entries, and in the main chapters of the book.
The constructor property of all objects
completements the typeof operator as a
way to determine the type of objects. (The
type property the Element object serves a
similar purpose for HTML form elements). See Chapter 7, Objects and the "Object.constructor" reference entry.
Constructor functions may now have a prototype object that
defines methods, constants, and default properties shared by
all objects created by the constructor. See Chapter 7, Objects, and the "Object.constructor" reference entry.
constructor, and a new split() method.
The Boolean and Number objects have been added. The Number
object defines several useful constants.
The Function object now supports a constructor for the
creation of "anonymous" functions. See
Chapter 6, Functions.
The Array object provides a useful constructor for the
creation of arrays, and also new sort(),
reverse(), and join()
The Math.random() method works on all
NaN, and the isNaN()
function are implemented on all palatforms. This means that
parseFloat() can now correctly return
NaN to signal invalid input.
eval() will evaluate the code in the
All objects can now be given an assign()
method, which essentially overloads the assignment operator
for that particular object.
See Chapter 7, Objects.
See Chapter 10, Client-Side Program Structure.