mozilla

Compare Revisions

Object.prototype.toString()

Change Revisions

Revision 61297:

Revision 61297 by evilpie on

Revision 61298:

Revision 61298 by evilpie on

Title:
toString
toString
Slug:
JavaScript/Reference/Global_Objects/Object/toString
JavaScript/Reference/Global_Objects/Object/toString
Tags:
JavaScript, "JavaScript Reference", "String Methods"
JavaScript, "JavaScript Reference", "String Methods"
Content:

Revision 61297
Revision 61298
t63      Since JavaScript 1.8.5 <code>toString</code> called on <codt63      Since JavaScript 1.8.5 <code>toString</code> called on <cod
>e>null</code> returns <code>[object <em>Null</em>]</code>, and <c>e>null</code> returns <code>[object <em>Null</em>]</code>, and <c
>ode>undefined</code> returns <code>[object <em>Undefined</em>]</c>ode>undefined</code> returns <code>[object <em>Undefined</em>]</c
>ode>. See <a href="/Using_toString_to_detect_object_type" title=">ode>. See <a href="/en/Getting_started#Starting_a_new_page" title
>Using toString to detect object type">Using toString to detect ob>="en/Getting started#Starting a new page">Using toString to detec
>ject type</a>.>t object type</a>.

Back to History