JSFiddle - React, Tailwind, and code Playground
by Nick Iaconis
JavaScript
var test = new Object();
test.yo = "hi there";
for(i=0; i<10; i++)
{
test["yo" + i] = "test " + i;
}
function anotherTest()
{
test.methodOne = "method one";
test[methodTwo] = "method two";
}
function alertAll()
{
alert(test.yo + " | " + test.yo0 + " | " + test.yo1 + " | " + test.yo2 + " | " + test.yo3 + " | " + test.yo4 + " | " + test.yo5 + " | " + test.yo6 + " | " + test.yo7 + " | " + test.yo8 + " | " + test.yo9 + " | " + test.methodOne + " | " + test.methodTwo);
}