Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created August 16, 2018 04:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/1ec90cfa35f2a231139a464622be46db to your computer and use it in GitHub Desktop.
Save codecademydev/1ec90cfa35f2a231139a464622be46db to your computer and use it in GitHub Desktop.
Codecademy export
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