I am trying to alert a returned value from a function and i get this in the The default conversion from an object to string is "[ object Object ]". As you. Real Life Objects, Properties, and Methods. In real life, a car is an object. A car has properties like weight and color, and methods like start and stop. The toString() method returns a string representing the object.
Object object - Sie
the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us. All cars have the same propertiesbut the property values differ from car to car. But why is it [object Object] and not just [object]?