Search
When creating objects, we can also assign the value of variables to the property of an object.
In the example above, the property car.seatingCapacity is assigned the value of the variable noOfSeats, which holds the value 5.
car.seatingCapacity
noOfSeats