Is my hypothesis of how I add a property to an object correct?


#1

I wanted to confirm if this is how I add a property to an object.

let Airplane = {};
Airplane.myAirplane="StarJet";/// Is this how you add a property to an object?
module.exports=Airplane;

Click Here for exercise


#2

Yes it is correct
You could have done this in your browser’s console to check if it was correct


#3

why would you want to export a file? I’m just trying to get clarification about why I’m learning about export


#4

help here too please. I’m trying to understand how I am writing this wrong


#5

nevermind I see the use of export now :slight_smile:


#6

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