7554425D-0054-440D-B95E-D2ABC13D62CD Created with sketchtool.
Your Saved Info Packages

View your saved Course or Program Packages containing pricing and detailed curriculum.

Speak with a Learning Advisor.

Have any questions? We'll call you.

Fill out the form below and a Learning Advisor will reach out at a time convenient for you.

Please pick a valid date and time between 9 AM and 8 PM eastern (Monday to Friday)

By clicking "Book a call," you accept our Terms and will also receive exclusive offers and updates about new courses, workshops and events.

JavaScript Tutorial

JavaScript Boolean

Ready to start your career in Development? Find out more about BrainStation's Web Development Bootcamp

Logical information in JavaScript is represented by a data type called boolean. They are very useful while writing conditional statements or while making logical decisions in code. They store one of the two values in it - true or false.

const hasGraduated = true;
const isRaining = false;
const result = 75 > 85;

console.log(hasGraduated); // prints true
console.log(isRaining); // prints false
console.log(result); // prints false

console.log(typeof hasGraduated); // prints boolean
console.log(typeof isRaining); // prints boolean
console.log(typeof result); // prints boolean
Set Password

You already have an account with BrainStation, but you still need to set up a password.