It's a little bit difficult to explain what I need, so I'll use some non-working code:
function createSimpleObjet(name, value){
return {
name: value
};
}
//create it
var obj = createSimpleObject('Message', 'Hello World!');
//test it:
alert(ojb.Message); //should alert 'Hello World!'
How would I go about?