JavaScript中的基本数据类型
2017-10-11 09:59
295 查看
JavaScript中数据类型有六种分别是:
Number ,
String,
Boolean,
null,
undefined以及一个混合数据类型Object(Date,function,Array。。。)
其中使用typeof返回数据类型的情况只有null是个例外:
typeof Symbol() //"symbol"
typeof Number() //"number"
typeof String() //"string"
typeof Function() //"function"
typeof Object() //"object"
typeof Boolean() //"boolean"
typeof null //"object"
typeof undefined //"undefined"
Number ,
String,
Boolean,
null,
undefined以及一个混合数据类型Object(Date,function,Array。。。)
其中使用typeof返回数据类型的情况只有null是个例外:
typeof Symbol() //"symbol"
typeof Number() //"number"
typeof String() //"string"
typeof Function() //"function"
typeof Object() //"object"
typeof Boolean() //"boolean"
typeof null //"object"
typeof undefined //"undefined"
相关文章推荐
- JavaScript中的基本数据类型和引用数据类型
- JavaScript基本数据类型及值类型和引用类型
- javascript 之基本数据类型、引用数据类型区别--02
- 读书笔记 JavaScript高级程序设计 第三章 基本概念-数据类型
- 学习笔记(二)JavaScript基本概念(语法,数据类型,控制语句,函数)
- Javascript的基本数据类型
- JavaScript中的基本数据类型
- JavaScript基本概念(变量 数据类型)
- javascript注释,javascript的变量,javascript的基本数据类型,
- JavaScript高级程序设计之基本概念之数据类型第3.4讲笔记
- 【JavaScript】基本数据类型与引用数据类型区别(及为什么String、Boolean、Number基本数据类型会有属性和方法?)
- 【学习笔记】JavaScript——基本语法与数据类型
- javascript数据基本类型和引用类型
- JavaScript中的五种基本数据类型详解
- JavaScript中基本数据类型和引用数据类型的区别
- JavaScript中的基本数据类型
- javascript:引入 基本数据类型 基本语法 类型转换 数组的单列
- JavaScript: * JavaScript:基本使用: * ECMAScript: * 变量:弱变量类型: var i; * 数据类型:原始类型和引用类型.
- 【韩顺平Javascript笔记】基本数据类型
- 一、JavaScript之基本数据类型