I have a key value pair array:
var myKeyVals = {make: "a", model: "2"};
Is there any easy way to format this array so that it is displayed meaningful in an alert?
alert(myKeyVals);
Here I get only:
[Object object]
But with console.log I get:
Object {make: "a", model: "2"}