FAQ: Intermediate JavaScript Modules - module.exports II

Whoever is reading this in 2020, this was already fixed and there is no “extra first line” in this exercise.


Is this exercise bugged or something? It would not accept my solution yet it was the same exact solution shown when I hit “View Solution”.

  • Confused

I’m having the same issue. The typesetter/highlighter/color-coding doesn’t seem to recognize myAirplane: as a key and neither does whatever checker is used to test for correct solutions.


Same here. It’s not accepting the myAirplane: "CloudJet" key-value pair despite both the hint and the solution showing exactly that


When I express the anonymous function that is the value to displayAirplane in arrow syntax, it stops working. I think others have had this problem as well. Why does this happen?

In this lesson, step 4 when I write file path in double quote inside require() function,it doesn’t work.I don’t know why?
But when I write in single quote it works.

I struggled with this aswell and sent a bug report to CodeCademy.
The only solution i found was to click the “get solution” button.
That let me move on to the next step.

In step-1: module.exports = {}; not accepting.
I tried:

let (and/or const) Airplane ={};
module.exports = {};

Still not accepting! It logs a message: Did you set ‘module.exports’ equal to an empty object? (But it doesn’t throw system error.)
Yes, I did :face_with_raised_eyebrow:
Am I doing something wrong? or is it a bug?


im also getting an error here

module.exports = {};

not sure why this isnt working

1 Like

I was able to get through step 1 by copying/pasting the code from the hint in step 1 (even though it was the same as the code that I input and and not worked). In step 2 the myAirplane key is not being detected unless I have const Airplane = {} above the module.exports. This is a bit weird :grimacing:

Same here. You’d think it being a paid tutorial with so many people asking about it someone from Codecademy would have corrected it by now. Kinda obnoxious.

Edit: Adding a comma at the end of “CloudJet” fixed it for me without adding the const Airplane = {}. I’m assuming because the program is expecting another key to follow which makes the error make more sense.

module.exports = {
myAirplane: “CloudJet”,

const Airplane = require("./2-airplane.js");
Why is it not working?

I had the same issue. The test rejects double quotation marks around the filename. I’m not sure whether this is intentional.

Yes, I agree - the format in the ‘Cheetsheet’ uses double quotes, but that doesn’t work. I also had another issue where I had left off (what I thought was) an ‘optional’ semi-colon at the end of a line that stopped the script from completing. As a learner, it is very confusing - I don’t know what is right and what is wrong.