Choose where you’d like to start

size()

Overview

The size() function takes a mapVariable as argument, and returns the count of key-value pairs in the map.

Return Type

  • Number

Syntax

<variable>= <mapVariable>.size();
ParameterDescriptionData type
<variable>Variable which will contain the returned number.NUMBER
<mapVariable>The map variable whose count of key-value pairs will be returned.KEY-VALUE

Examples

mapVar = {"Product" : "Zoho Creator", "Version" : 5};
size = mapVar.size();             // returns 2

Get Started Now

Execute