-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JS 的基本数据类型。 #1
Comments
JS有 5 种基本数据类型(原始类型),即 Undefined、Null、Boolean、Number 和 String。 Undefined 类型只有一个值,即 undefined。 |
Symbol see mdn for detail |
JS 7 种基本数据类型(原始类型),即 (Undefined、Null、Boolean、Number 、String) + (Symbol、BigInt)和 3种引用数据类型:对象(Object)、数组(Array)、函数(Function)。 基本类型值:指的是保存在栈内存中的简单数据段。 引用类型值:指的是那些保存在堆内存中的对象。变量中保存的实际上只是一个指针,这个指针指向内存堆中实际的值。
Symbol用法 语法 Symbol (value) eg.
BigInt用法 语法 BigInt(value) || 数字后面加n; eg.
|
es6一共7种数据类型 |
介绍一下 JS 的基本数据类型。
The text was updated successfully, but these errors were encountered: