x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<h1>JavaScript delete() Method</h1>
6
<script>
7
    const lang = new Map([
8
        ["HTML", 90],
9
        ["CSS",  80],
10
        ["Javascript", 70]
11
    ]);
12
13
    lang.delete("HTML");
14
15
    document.write(lang.size);
16
</script>
17
18
</body>
19
</html>