Mellow to answer your question the term OOP (Object Oriented Programming) comes to mind, as far as i know there are 2 ways of accessing object properties super easy though there are most likely more than two i will only be showcasing 2 for the sake of simplicity, this is basically an example of what Ack did without the array
var obj = {
a: 0,
b: "a",
c: false
}
console.log(obj["a"] + " : " + obj.a)