I do not understand which is the difference?


#1

as i wrote the code below,but it can not pass :

module.exports={
myAirplane=“CloudJet”
};

the correct code is below :

module.exports = {
myAirplane: “CloudJet”
};
which is the difference between the two codes ?
thank you in advance.


#2

spacing on this line:

module.exports = {

notice the spaces around the equal sign


#3

thank you for your help,this is regulation for the code ?or just for this exercise ?thank


#4

i wouldn’t call it regulation, but the spaces there is common practice, maybe recommended, but regulated is not the word i would use

the exercise doesn’t allow it, which you could argue is a bit harsh


#5

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