toString < Object < JavaScript
The toString() method of an object returns it as a string. Every JavaScript object (Date, Array, etc) has a toString() method.
const flight = {
start: "Detroit",
end: "Miami",
airline: "Delta",
jet: 767
};
console.log(flight.toString());
// "[object Object]"
console.log(flight);
{
airline: "Delta",
end: "Miami",
jet: 767,
start: "Detroit"
}