JavaScript: What is the data type of null?

This question already has an answer here:

  • Why is null an object and what's the difference between null and undefined? 20 answers
  • why is typeof null “object”? 5 answers

  • Type of null is object.

    you can check type of any variable with typeof keyword. for example

    typeof null
    

    check the link below for more details.

    链接地址: http://www.djcxy.com/p/76334.html

    上一篇: 为什么null是一个对象,null和undefined有什么区别?

    下一篇: JavaScript:什么是null的数据类型?