typeof (Array, null) returns object and typeof(null, Array) returns function
As the title says it all, typeof (Array, null) returns object and
typeof(null, Array) returns function. Why? Interview question.
It returns the type of second parameter.
No comments:
Post a Comment