First, I apologize as this question has been asked before; however, the solutions didn't seem to work in the context of my contract. When I remove "var", Remix does not recognize "car", but with it, I get the warning that "var" is deprecated. I've tried using "struct car" and "struCar", but neither worked. How should I replace var?
mapping(uint => Vehicle) vehicles;
function newCar(bytes32 _color, bytes32 _make, uint32 _year) public returns (uint ID) {
var car = vehicles[carID];
car.color = _color;
car.make = _make;
car.year = _year;
carID ++;
ID = carID;