Help with - INTERMEDIATE JAVASCRIPT MODULES

Hi,
I’m stuck on number 7 , do i have any problem with the code ?
I d’ont understand where so i need to use “displayAirplane() function?”

import {availableAirplanes, flightRequirements, meetsStaffRequirements} from './airplane';

function displayFuelCapacity() {
  availableAirplanes.forEach(function(element) {
    console.log(`Fuel Capacity of ${element.name}: ${element.fuelCapacity}`);
  });
}

displayFuelCapacity();

function displayStaffStatus() {
  availableAirplanes.forEach(function(element) {
   console.log(element.name + ' meets staff requirements: ' + meetsStaffRequirements(element.availableStaff, flightRequirements.requiredStaff) );
  });
}

displayStaffStatus();```

Hello @jonykapash, welcome to the forums! Could you please post your full code, and a link to the exercise. To format your code, press this button:


and put the code between the back ticks:Screen Shot 2020-05-02 at 14.06.13

1 Like

The code was fine , i think it was a bug i refreshed the site and it passed :slight_smile:

thanks for the quick replay! :slight_smile: :smiley:

1 Like