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


Miguel Nunez
Miguel Nunez
3,266 Points

What is true in false mean in JavaScript?

What is true and false referring to in JavaScript? Please explain in a simple way nothing to complicated please explain in a simple way that a lil kid will understand.

1 Answer

Is sky blue? true Is steak made of cow? true Is space warm? false.

true or false is a way of saying yes or no with no other answer.

true and false are actual types in javascript. words are a string, number are a number, true & false are called boolean.

true & false are ways to be super sure of an answer. something you can always get and know it always means that thing.

Does this help?