<script> var n1=null; var n2=Object(n1); alert(n1 instanceof Object);//false alert(n2 instanceof Object);//true </script>