JSFiddle - React, Tailwind, and code Playground

by Gary Guagliardo

JavaScript

var options = {
    test1: "num1",
    test2: "num2"
};



$.extend(options, {
    test3: "num3",
    test4: "num4"
});


$.extend(options, {
    test5: "num5",
    test6: "num6"
});

var x = "";
for (var i = 1; i <= 6; i++) {
   x += options["test"+i] + "\n";
}
alert(x);