Boolean

A Boolean is a data type with only two possible values: true or false. It is the basis of every decision a program makes.

General Programming

Examples

Python

is_logged_in = True
print(is_logged_in)

Output:

True

JavaScript

let isLoggedIn = true;
console.log(isLoggedIn);

Output:

true

See also

Back to the Dictionary