Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

First Exercise let launchReady = false; let fuelLevel = 17000;

if (fuelLevel >= 20000) { console.log('Fuel level cleared.'); launchReady = true; } else { console.log('WARNING: Insufficient fuel!'); launchReady = false; }

Exercise 2. let launchReady = false; let fuelLevel = 17000;

if (fuelLevel >= 20000) { console.log('Fuel level cleared.'); launchReady = true; } else { console.log('WARNING: Insufficient fuel!'); launchReady = false; }

let launchReady = false; let crewReady = false; let fuelLevel = 17000; let crewStatus = true; let computerStatus = 'green';

if (fuelLevel >= 20000) { console.log('Fuel level cleared.'); launchReady = true; } else { console.log('WARNING: Insufficient fuel!'); launchReady = false; } console.log("launchReady = ", launchReady);

if (crewStatus && computerStatus === 'green'){ console.log('Crew & computer cleared.'); crewReady = true; } else { console.log('WARNING: Crew or computer not ready!'); crewReady = false; } console.log("crewReady = ", crewReady);

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors