- script.js
JavaScript
var enoughDevelopers = false;
var techAvailable = false;
var onVacation = false;
var onSickLeave = false;
if (enoughDevelopers && techAvailable) {
console.log('You can start the project');
}
if (onVacation || onSickLeave) {
console.log('It is better to wait');
}
Result
Goalscompleted
In turn, change the values of the variables.
- Indicate that there are enough developers.
- Indicate that the developers mastered the technology.
- Indicate that one of the developers is on vacation.
Comments