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>
JavaScript Map Objects
Creating a Map from an Array: