This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by Stuart Phillips
about 11 years

Code not working

I changed the [ to { as per instructions and get a message in the results field “Parse error: syntax error, unexpected ‘{‘, expecting ‘(‘ on line 8”

My code;

Answer 5166cdd9b6dda38bfc003ea5

1 vote

Permalink

I think the reason it is not working is because the array is in brackets. Try replacing those brackets with parentheses, like this, follow the code exactly as it worked for me:

points
about 11 years

2 comments

Erwin dela Torre Novo about 11 years

Or you can also do it like this:

Ahmet Toktay almost 11 years

Erwin’s code is true, Stuart’s code is false. Switch the {}’s, it’s true is: ()