Change Language


Follow Navioo On Twitter

new

Creates an instance of an object type that has a constructor function.

Syntax

objectInstanceName = new objectName([param] [...])

Example

Padres = new Team("Giles", "Hoffman", "Peavy")

Remarks

Can be either an object that you defined, or a built-in object, as long as it has a constructor.

text_javascript Navioo_docs

Ajax Javascript feed

↑ Grab this Headline Animator