Modules


#1

https://www.codecademy.com/courses/intermediate-javascript-modules/lessons/modules/exercises/import-named-imports?action=lesson_resume&course_redirect=introduction-to-javascript

i just defined the function such is in hint, but it shows me err, why??

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

function displaySpeedRangeStatus(){};

function displayFuelCapacity(){
 availableAirplanes.forEach(function(element){console.log('Fuel Capacity of'+element.name+':'+element.fuelCapacity);});
  
}
displayFuelCapacity();
import {availableAirplanes, flightRequirements, meetsStaffRequirements} from './airplane';

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



#2

There should only be one import statement (at top) so this one can be removed.


#3

THank youuuuuuuuuu!!!;*


#4

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