Shorthand checking for false in JavaScript

Suppose now we want to check the value of the variable for false. It can be done like this:

javascriptlet test = true;

if (test === false) {
  console.log('+++');
} else {
  console.log('---');
}

You can also write the equivalent code with negation:

javascriptlet test = true;

if (test !== true) {
  console.log('+++');
} else {
  console.log('---');
}

The above code can be rewritten in a shortened form as follows:

javascriptlet test = true;

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

Rewrite the following code using the shortened form:

javascriptlet test = true;

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

Rewrite the following code using the shortened form:

javascriptlet test = true;

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

Rewrite the following code using the shortened form:

javascriptlet test = true;

if (test != false) {
  console.log('+++');
} else {
  console.log('---');
}