Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Aaron Bell](https://uploads.teamtreehouse.com/production/profile-photos/10728564/micro_dllhost_2019-05-02_01-54-53.jpg)
Aaron Bell
6,113 PointsIt doesn't check if bracket notation is used.
For this question, I accidentally used dot notation to change player2.isTurn to true. It worked. The question should check if bracket notation was used.
Also there's no 'Report Question' for this challenge.
const player1 = {
name: 'Ashley',
color: 'purple',
isTurn: true,
play: function(){
if (this.isTurn) {
console.log(`${this.name} is now playing!`);
}
}
}
const player2 = {
name: 'Guil',
color: 'red',
isTurn: false,
play: function(){
if (this['isTurn']) {
console.log(`${this['name']} is now playing!`);
}
}
}
player1.isTurn = false;
player2.isTurn = true;
Steven Parker
230,688 PointsSteven Parker
230,688 PointsYou can make bug reports directly to the staff using the instructions on the Support page.![:beetle: :beetle:](https://image-proxy-cdn.teamtreehouse.com/21819534c3279feef7370b113f1e2b9d50e6ec23/68747470733a2f2f7374617469632e7465616d74726565686f7573652e636f6d2f696d616765732f656d6f6a692f756e69636f64652f31663431652e706e67)
If you're the first to report it, you should get the "Exterminator" badge!