Week 3 Object
001let car = { 002 doors : 4, 003 fuel : 'petrol', 004 colour: 'red', 005 details: function(){ 006 return 'The car is '+ this.colour + ' and runs on ' + this.fuel; 007 } 008} 009 010console.log(car.colour); 011 012car.colour = 'blue'; 013 014console.log(car.colour); 015 016console.log(car.details());