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 trialmalcolm henry
1,089 Points! is to make the opposite correct?
What is the value of !(!true)?
The quiz is telling me this is True?
1 Answer
Victor Mercier
14,667 PointsHi Malcom, so the ! operator reverse a boolean value. So if we break down that, the first thing we do is REVERSING A TRUE VALUE, which then becomes a false value. After, we reverse a false value, which then becomes true again!
malcolm henry
1,089 Pointsmalcolm henry
1,089 Pointsis it asking me directly what is the value of ! itself
or is it 2 NOTS like NOT NOT True making it : !(!true) !(false) which is NOT false so (true)