Set clear() Method Parameters

This method does not accept any parameters.

JavaScript Set clear() Method

The Set clear() method in JavaScript is used for the removal of all the elements from a set and making it empty.

Similar Reads

Set clear() Method Syntax

mySet.clear();...

Set clear() Method Parameters

This method does not accept any parameters....

Set clear() Method Return Value

Returns an undefined value....

Set clear() Method Examples

Example 1: Emptying set using Set clear() method...