August 1999
Intermediate to advanced
1488 pages
72h 53m
English
new
The new operator is used to create a new object.
Listing 6.180 shows how new is used to create a new Array object.
<html> <body> <script language="JavaScript"> <!–– Hide //Creates a new array object with the name myArray var myArray = new Array(); // End Hide ––> </script> </body> </html> |
Read now
Unlock full access