×

Loading...

问个Javascript的问题:

1.Why might it be unwise to determine whether an object is - or
is not - null by comparing (assumption: with triple-equal
equality operator) the value returned by typeof operator when
used on the object to the string ‘object’?
Consider the following code example:

If(typeof myobj===’object’){

}
Report

Replies, comments and Discussions: