+ 3
JavaScript mappings
<!DOCTYPE html> <html> <head> <title>Map</title> </head> <body> <h1> get to know about mapping </h1> <p> Mapping is a new feature in js which comprise of key and value, from below example 1 is the key and i is the value 1=>i</p> <script> var myMap= new Map().set(1,"i").set(2,"ii"); alert(myMap.get(2)) </script> </body> </html>
1 Answer
+ 1
What is the question?