crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript Maps</h2> <p>Using Map.has():</p> <p id="demo"></p> <script> // Create a Map const fruits = new Map([ ["apples", 500], ["bananas", 300], ["oranges", 200] ]); // Delete an Element fruits.delete("apples"); document.getElementById("demo").innerHTML = fruits.has("apples"); </script> </body> </html>
JavaScript Maps
Using Map.has():