- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Map.size property in JavaScript
The size property of Map object accepts a JSON string, and constructs an object based on the given text and, returns it.
Syntax
Its Syntax is as follows
mapVar.size
Example
<html> <head> <title>JavaScript Example</title> </head> <body> <script type="text/javascript"> var mapVar = new Map(); mapVar.set('1', 'Java'); mapVar.set('2', 'JavaFX'); mapVar.set('3', 'HBase'); mapVar.set('4', 'Neo4j'); document.write("Size of the map object: "+mapVar.size); </script> </body> </html>
Output
Size of the map object: 4
- Related Articles
- ArrayBuffer.byteLength Property in JavaScript
- DataView.byteLength property in JavaScript
- DataView.byteOffset property in JavaScript
- DataView.buffer property in JavaScript
- Math.LN2 Property in JavaScript
- Math.LOG10E Property in JavaScript
- Math.LOG2E Property in JavaScript
- Math.PI Property in JavaScript
- Math.SQRT1_2 Property in JavaScript
- Math.SQRT2 Property in JavaScript
- Number.EPSILON Property in JavaScript
- Number.MAX_SAFE_INTEGER Property in JavaScript
- Number.MAX_VALUE Property in JavaScript
- Number.MIN_SAFE_INTEGER Property in JavaScript
- Number.MIN_VALUE Property in JavaScript

Advertisements