Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ES2020 又新增了 BigInt 基本数据类型 #191

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

Merged
merged 1 commit into from
Sep 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions basics/primitive-data-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

JavaScript 的类型分为两种:原始数据类型([Primitive data types][])和对象类型(Object types)。

原始数据类型包括:布尔值、数值、字符串、`null`、`undefined` 以及 [ES6 中的新类型 `Symbol`][]。
原始数据类型包括:布尔值、数值、字符串、`null`、`undefined` 以及 ES6 中的新类型 [`Symbol`][] 和 [`BigInt`][]。

本节主要介绍**前五种**原始数据类型在 TypeScript 中的应用。

Expand Down Expand Up @@ -150,6 +150,7 @@ let num: number = u;
- [ES6 中的模板字符串][]

[Primitive data types]: https://developer.mozilla.org/en-US/docs/Glossary/Primitive
[ES6 中的新类型 `Symbol`]: http://es6.ruanyifeng.com/#docs/symbol
[`Symbol`]: http://es6.ruanyifeng.com/#docs/symbol
[`BigInt`]: https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/BigInt
[ES6 中的二进制和八进制表示法]: http://es6.ruanyifeng.com/#docs/number#二进制和八进制表示法
[ES6 中的模板字符串]: http://es6.ruanyifeng.com/#docs/string#模板字符串