[guide]: add "bigint" type to the primitives type section.

```js
var bn = 123n
```
(with "n" as suffix)
This commit is contained in:
lagagain
2020-02-28 14:53:58 +08:00
committed by Jordan Harband
parent 9890b40677
commit 717ba5187a

View File

@@ -71,6 +71,7 @@ Other Style Guides
- `null`
- `undefined`
- `symbol`
- `bigint`
```javascript
const foo = 1;
@@ -81,7 +82,7 @@ Other Style Guides
console.log(foo, bar); // => 1, 9
```
- Symbols cannot be faithfully polyfilled, so they should not be used when targeting browsers/environments that dont support them natively.
- Symbols and BigInts cannot be faithfully polyfilled, so they should not be used when targeting browsers/environments that dont support them natively.
<a name="types--complex"></a><a name="1.2"></a>
- [1.2](#types--complex) **Complex**: When you access a complex type you work on a reference to its value.