.size

The .size property returns the number of values in a Set as an integer.

Syntax

set.size;

No parameters are needed for the .size property.

Codebyte Example

Edit this page on GitHub

Contributors

Interested in helping build Docs? Read the Contribution Guide or share your feedback form.

Learn JavaScript on Codecademy