This question have two parts: first, I want to create an array that works like a table. It will have two columns ids (Game-Id and Game-Name). I have been working in something like this:
var game_list =
[
{id:1, name:'Vampires hunter'},
{id:2, name:'Christmas vampires'},
{id:3, name:'Fruit hunter'},
{id:4, name:'The fruitis'},
{id:5, name:'james bond'},
{id:6, name:'Vampires hunter'},
{id:7, name:'Vampires avalon'},
{id:8, name:'Vampires warrior'},
{id:9, name:'Vampires hunter'},
{id:10, name:'Vampires hunter'},
];
But I'm not able to access elements in this kind of array / object, not even a document.write of an element.
What I need is to create a function that will search for a specific string inside that array. The function will have 2 parameters (the string and the array) and it will give us a result an array of the elements with game names and ids that match that string.