1 Overwriting the toString() method of a JavaScript object to return a specific value causes that value to be displayed when the object is stringified.
“That function is called whenever you want to get a string representation of that object. So if I return 1337 object as a string, and I would alert this object, it would call to string and show me that one.”