The clear() method of a Set removes all of the elements from it.

    
    const months = new Set(['March', 'Jan', 'Feb', 'Dec']);

    months.clear();

    console.log(months.size);
    // 0