DEV Community

Discussion on: JavaScript: Data Structures (Part 3 - Maps)

Collapse
 
zdh3 profile image
Zach Handler • Edited

You have the same description for .clear and .delete:

"By using the delete( ) method you can remove a key and its value from a map."

"In the other hand if you use the clear ( ) method, it will remove both, the key and its value."