Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Documentation bug: typeof operator

1 view
Skip to first unread message

James D. Rofkar

unread,
Feb 11, 2001, 9:55:38 PM2/11/01
to
In Microsoft's JScript documentation, it states that the typeof operator
returns only six possible string values: "number," "string," "boolean,"
"object," "function," and "undefined."

And yet, the following simple script informs us that the typeof operator
can also return "unknown":

var s = typeof(window.external.isSubscribed);
alert(s);

Thought you might enjoy this,
-Jim Rofkar.
jro...@cros.net

Mark F.

unread,
Feb 12, 2001, 1:03:20 PM2/12/01
to

"James D. Rofkar" <jro...@cros.net> wrote in message
news:3a875019$1...@usenet.cros.net...

> In Microsoft's JScript documentation, it states that the typeof
operator
> returns only six possible string values: "number," "string,"
"boolean,"
> "object," "function," and "undefined."
>
> And yet, the following simple script informs us that the typeof
operator
> can also return "unknown":
>
> var s = typeof(window.external.isSubscribed);
> alert(s);
>

That's interesting. Did you get the same results with different browser
versions, platforms? Because "unknown" may be browser specific and *may*
mean the same as "undefined".


0 new messages