void

Type Range Default Value
void undefined undefined

The void type represents undefined, non-null values.

Conversions for Internal Types

There are no internal types with a conversion to void.

Conversions for external Type

When converting from an expression or value of type external, the external expression will execute (such as a function call), but the value will always be converted to undefined. Please note that side effects are possible.

Differences from JavaScript

In JavaScript, void is used for evaluating an expression and returning undefined. In JS++, void is used as a type instead. In order to evaluate an expression and return undefined, please use a function:

1
(void(){ expression1; expression2; })();

See Also

Share

HTML | BBCode | Direct Link