crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript Map Objects</h2> <p>Creating a Map from an Array:</p> <p id="demo"></p> <script> // Create a Map const fruits = new Map([ ["apples", 500], ["bananas", 300], ["oranges", 200] ]); document.getElementById("demo").innerHTML = fruits.get("apples"); </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KPGgyPkphdmFTY3JpcHQgTWFwIE9iamVjdHM8L2gyPg0KPHA+Q3JlYXRpbmcgYSBNYXAgZnJvbSBhbiBBcnJheTo8L3A+DQoNCjxwIGlkPSJkZW1vIj48L3A+DQoNCjxzY3JpcHQ+DQovLyBDcmVhdGUgYSBNYXANCmNvbnN0IGZydWl0cyA9IG5ldyBNYXAoWw0KICBbImFwcGxlcyIsIDUwMF0sDQogIFsiYmFuYW5hcyIsIDMwMF0sDQogIFsib3JhbmdlcyIsIDIwMF0NCl0pOw0KDQpkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgiZGVtbyIpLmlubmVySFRNTCA9IGZydWl0cy5nZXQoImFwcGxlcyIpOw0KPC9zY3JpcHQ+DQoNCjwvYm9keT4NCjwvaHRtbD4=