Conditions with boolean values in JavaScript

Suppose we have some variable that can take the values true or false:

javascriptlet test = true;

Let's write if that tests our variable for the value true:

javascriptlet test = true;

if (test === true) {
  console.log('+++');
} else {
  console.log('---');
}
Задание 1

Check that the variable test is equal to true.

Задание 2

Check that the variable test is equal to false.