If for some reason I want to combine two of the other properties inside an object, am I able to do this?
For example, if I have:
Cars = {
myFirstCar = { model: "mazda", color: "grey" }
myCurrentCar = { model: "toyota", color: "black" }
}
And say I want to add another property inside of myFirstCar
that will combine the model
one, and the color
one. Something like this:
Cars = {
myFirstCar = { model: "mazda", color: "grey", conclusion: model + color }
myCurrentCar = { model: "toyota", color: "black" }
}