Optionality of else construct in JavaScript

The construct else is optional. The following example will print a message to the console only if the value of the variable is 1. Otherwise, nothing will just happen:

javascriptlet test = 1;

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

Check if the variable test is equal to 10, then let's print 'yes'. Otherwise, let nothing happen.