- 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
enoughDevelopers
andtechAvailable
using the “logical AND”. - Inside the condition, log the
'You can start the project'
message in the console. - Add below the second condition, combining
onVacation
andonSickLeave
using “logical OR”. - Inside the second condition, log the message
'It is better to wait'
. - Change the value of
techAvailable
variable tofalse
, and the value ofonSickLeave
totrue
.
Comments