JS数据类型

分为原始类型和引用类型:

(1)原始类型:

  值直接保存在变量本地的数据类型

   number string boolean null undefined

(2)引用类型:

  值无法保存在变量本地的复杂数据类型:变量名仅保存存储空间的地址

原文地址:https://www.cnblogs.com/codexlx/p/12518112.html