Precedence of logical operators in JavaScript

The operation && takes precedence over ||. In the following example, the condition will be true if the variable num is between 0 and 5 OR between 10 and 20:

javascriptlet num = 3;

if (num > 0 && num < 5 || num > 10 && num < 20) {
  console.log('+++');
} else {
  console.log('---');
}
Задание 1

Explain how the comparison is performed under the following condition:

javascriptif (num == 0 || num > 1 && num < 5 ) {
  console.log('+++');
} else {
  console.log('---');
}