Saturday, August 31, 2013

Previous Interview Question Next Interview Question
Home

Is it possible to check if a variable is an object?

Yes, it is possible to do so. The following piece of code will help achieve the same.


if(abc && typeof abc === "object") {
console.log('abc is an object and does not return null value');
}

Previous Interview Question Next Interview Question
Home

0 comments :

Post a Comment