Missing } in the property value


#1

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([
“Inside”
,“Outside”
]);

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

//debugStats = stats}

What’s wrong with it?


#2

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).


#3

Thank you, it works now.