This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
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
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:
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
Or you can also do it like this:
Erwin’s code is true, Stuart’s code is false. Switch the {}’s, it’s true is: ()