Fandom

JavaScript Wiki

Word operators

87pages on
this wiki
Add New Page
Talk0 Share

deleteEdit

Deletes any objects passed to it.

inEdit

In for...in loops, assigns each successive index owned by the right object into the left variable. Everywhere else, returns a Boolean which represents whether the right object has a property by the name of the left identifier.

instanceofEdit

Returns a Boolean which represents whether the first value is an instance of the right constructor.

newEdit

Returns a new instance of the constructor operand.

typeofEdit

Returns a string representing the argument's type. The possible strings represent only a subset of the literal types:

Type Result
Undefined "undefined"
Null "object"
Boolean "boolean"
Number "number"
String "string"
Function "function"
Anything else "object"

voidEdit

A useless legacy feature; returns undefined regardless of its operand. It is sometimes used to return false in javascript: URLs or to simply wrap a statement.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.