crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript Maps</h2> <p>Clearing a Map:</p> <p id="demo"></p> <script> // Create a Map const fruits = new Map([ ["apples", 500], ["bananas", 300], ["oranges", 200] ]); // Clear the Map fruits.clear(); document.getElementById("demo").innerHTML = fruits.size; </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KPGgyPkphdmFTY3JpcHQgTWFwczwvaDI+DQo8cD5DbGVhcmluZyBhIE1hcDo8L3A+DQoNCjxwIGlkPSJkZW1vIj48L3A+DQoNCjxzY3JpcHQ+DQovLyBDcmVhdGUgYSBNYXANCmNvbnN0IGZydWl0cyA9IG5ldyBNYXAoWw0KICBbImFwcGxlcyIsIDUwMF0sDQogIFsiYmFuYW5hcyIsIDMwMF0sDQogIFsib3JhbmdlcyIsIDIwMF0NCl0pOw0KDQovLyBDbGVhciB0aGUgTWFwDQpmcnVpdHMuY2xlYXIoKTsNCg0KZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImRlbW8iKS5pbm5lckhUTUwgPSBmcnVpdHMuc2l6ZTsNCjwvc2NyaXB0Pg0KDQo8L2JvZHk+DQo8L2h0bWw+