Object must return function
<p>I have some JS code here:</p>

<pre><code>function Car(manufacturer, model, year) {
    this.manufacturer = manufacturer;
    this.model = model;
    this.year = year == undefined ? new Date().getFullYear() : year;
    this.getInfo = function(){
        return this.manufacturer +' '+ this.model +' '+ this.year;
    };
}

var bmw = new Car("BMW", "X5", 2010);
</code></pre>

<p>So I want some interesting output in the console:</p>

<pre><code>console.log('Car: ' + bmw); // Car: BMW X5 2010
</code></pre>

<p>How to do it without calling any methods?</p>

<p><strong>THANKS!</strong></p>

<pre><code>I need the 'getInfo' method, so I have simply changed my code:
function Car(manufacturer, model, year) {
    this.manufacturer = manufacturer;
    this.model = model;
    this.year = year == undefined ? new Date().getFullYear() : year;
    this.toString = this.getInfo = function(){
        return this.manufacturer +' '+ this.model +' '+ this.year;
    };
}
</code></pre>
