.size

BrandonDusch's avatar
Published Jun 16, 2022Updated Oct 8, 2022
Contribute to Docs

The .size property returns the number of entries in a Map object.

Syntax

set.size;

No parameters are needed for the .size property.

Codebyte Example

Code
Output
Loading...

All contributors

Contribute to Docs

Learn JavaScript on Codecademy