- script.js
JavaScript
var enoughDevelopers = true;
var techAvailable = true;
var onVacation = false;
var onSickLeave = false;
Result
Goalscompleted
Let’s describe the new logic of the program:
- Add the first condition that combines
enoughDevelopersandtechAvailableusing the “logical AND”. - Inside the condition, log the
'You can start the project'message in the console. - Add below the second condition, combining
onVacationandonSickLeaveusing “logical OR”. - Inside the second condition, log the message
'It is better to wait'. - Change the value of
techAvailablevariable tofalse, and the value ofonSickLeavetotrue.
Comments