Skip to content

Commit

Permalink
[guide]: add "bigint" type to the primitives type section.
Browse files Browse the repository at this point in the history
```js
var bn = 123n
```
(with "n" as suffix)
  • Loading branch information
lagagain authored and ljharb committed Feb 28, 2020
1 parent 9890b40 commit 717ba51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Other Style Guides
- `null`
- `undefined`
- `symbol`
- `bigint`

```javascript
const foo = 1;
Expand All @@ -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 don’t support them natively.
- Symbols and BigInts cannot be faithfully polyfilled, so they should not be used when targeting browsers/environments that don’t 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.
Expand Down

0 comments on commit 717ba51

Please sign in to comment.