So basically {stuff:0,stuff2:1,} is called an object and there basically what you CDO people know as sprites.
so if I had
var things = {
thing1: 10,
thing2: 20,
};
then I could say
things.thing1 which would be 10
in your case you have an array with a bunch of objects inside of it
so:
var acheivements = [
{
acheivement:'yey',
how:'do yey',
unlocked:false,
},
{
acheivement:'oops',
how:'do oops',
unlocked:false,
},
];
so to see if you have the first acheivement, yey, you would say
acheivements[0].unlocked
and it should be true or false(in this case false)
so now in case you didnt know a good way to go through every acheivement is
for(var i =0; i < acheivements.length; i++){
console.log('acheivement number '+i+' unlocked: '+acheivements[ i ].unlocked);
}
well hope this helps