Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

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?