Hi,
I want to use Lookup table in JavaScript.
For reference
http://stackoverflow.com/questions/9006111/is-there-a-simple-way-to-create-a-javascript-lookup-table
As shown in this link I want to do something like
var data = {
1: {
2: {
3: 45
}
},
2: {
2: {
3: 98
}
}
};
console.log(data[1][2][3]); // 45
console.log(data[2][2][3]); // 98
// or
var A = 1, B = 2, C = 3;
console.log(data[A]
[C]); // still 45
But now I am little confused. How should I call these functions using HTML controls
I'll be thankful if some one provide me running code demo or fully coded demo.
IT KNOWLEDGE IS APPLIED KNOWLEDGE
So Just Do It