Answers for "Carte"

CSS
0

Carte

var m = new Map();
    m.set(1, "black");
    m.set(2, "red");

    for (var n of m) {
        console.log(n);
    }

    // Output:
    // 1,black
    // 2,red
Posted by: Guest on September-17-2021

Browse Popular Code Answers by Language