for the sake of fun and exploring nodeJS I made an object

```
var f15c = {
fuel : 10000,
IRST: true,
AESA: true,
speed: 2500,
Ammo:
 {
    AMRAAM: 6,
    Python5: 2,
    Delilah: 3,
 },
tailnumber : the question begins here.
}

```

The problem came when I wanted to add tailnumber that is not the same for every plane but should be assigned to the plane.
what is the methode?

```
var f15c = {
...
tailnumber = function (tn){"whats should i add here?"}
}

```

or

```
var f15c = {
...
tailnumber: ?? what should i place here?
SetTailNumber = function(tn)
 {
   tailnumber=tn;
 }
}

```

or must I have the entire F15c as a function?

```
var f15c = function(tn) {
...
tailnumber = tn;

```

but then i cannot set the entire variables complex.

or perhaps I'm doing it wrong and should refer the variable as an individual F15 and use a different function to create it?
but then how do I make that field in a way it is unassigned and waiting to be assigned (and then saves the assigned number)?

would appreciate some heads up