Named Imports: Can't figure why I can't advance in class w/ this code, as i get a correct solution

import {availableAirplanes, flightRequirements, meetsStaffRequirements} 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)}`)

    });

}

displayFuelCapacity();

displayStaffStatus();

Can’t figure why with this code i can’t advance in the class(won’t allow me to correctly pass step 6.), as i tried it in VS CODE and it correctly displays everything that is supposed:
E.g.
“AeroJet meets staff requirements: true
SkyJet meets staff requirements: false”

Blockquote

Is it this lesson you’re attempting? https://www.codecademy.com/paths/web-development/tracks/webdev-intermediate-javascript/modules/intermediate-javascript-modules/lessons/modules/exercises/import-named-imports

If so, step 6 says to

Call the displaySpeedRangeStatus() function.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.