Choose where you’d like to start

clear()

Overview

The clear() function takes a mapVariable as an argument, and removes all key-values pairs from the map.

Syntax

<mapVariable>.clear();
ParameterDescriptionData type
<mapVariable>The map variable whose key-value pairs will be removed.KEY-VALUE

Examples

mapVar = {"Product" : "Creator", "Version" : 5};
mapVar.clear();           // empties the given map

Get Started Now

Execute