Jump to content

expanding knowledge of .toString()


graduate

Recommended Posts

They're references to different methods.The first method, Object.toString() is a function that shows a string representation of Object() while Object.prototype.toString() is a method that all instances (copies) of Object() have. Normally, if you create your own object, you override the toString() method to make it show what you want it to.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...