.size

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

us
Visit us
code
Hide code
Code
Output
Hide output
Hide output
Loading...

All contributors

Looking to contribute?

Learn JavaScript on Codecademy