Missing } in the property value


I am writing a game using choicescript, but whenever I try to use the index it says “missing } after property value.” My mygame.js file is this:

nav = new SceneNavigator([

stats = {
Killed_Cockroach: false
Friends_with_Ogre: false
Friends_with_Pencil: false

//debugStats = stats}

What’s wrong with it?


First the debugStats line should not have the curly parenthesis (}) at the end. Additionally, ever ‘stat’ after the first needs a comma (,) before it.

Also if you post < code> on the life before your code and < /code> after it (without the spaces). It will maintain the spacing (which may be important).


Thank you, it works now.