Microsoft® JScript new Operator |
Language Reference Version 1 |
Creates a new object.
new constructor[(arguments)]
The constructor argument calls object's constructor. The parentheses can be omitted if the constructor takes no arguments.
The new operator performs the following tasks:The constructor then initializes the object according to the arguments passed to the constructor. These are examples of valid uses of the new operator:
- It creates an object with no members.
- It calls the constructor for that object, passing a pointer to the newly created object as the this pointer.
my_object = new Object; my_array = new Array(); my_date = new Date("Jan 5 1996");
© 1997 by Microsoft Corporation. All rights reserved.
file: /Techref/language/jscript/js662.htm, 2KB, , updated: 1997/9/30 03:44, local time: 2024/11/1 01:28,
3.15.29.146:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/Techref/language/jscript/js662.htm"> new Operator</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.