-
-
Save codecademydev/1ec90cfa35f2a231139a464622be46db to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {availableAirplanes, flightRequirements, meetsStaffRequirements, meetsSpeedRangeRequirements } from './airplane'; | |
function displayFuelCapacity() { | |
availableAirplanes.forEach(function(element) { | |
console.log('Fuel Capacity of ' + element['name'] + ': ' + element['fuelCapacity']); | |
}); | |
} | |
function displayStaffStatus() { | |
availableAirplanes.forEach(function(element) { | |
console.log(element.name + ' meets staff requirements: ' + meetsStaffRequirements(element.availableStaff, flightRequirements.requiredStaff)); | |
}); | |
}; | |
function displaySpeedRangeStatus() {} | |
displayFuelCapacity(); | |
displayStaffStatus(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment