8000 [guide]: add "bigint" type to the primitives type section. · odongohcoder2019/javascript@717ba51 · GitHub
[go: up one dir, main page]

Skip to content

Commit 717ba51

Browse files
lagagainljharb
authored andcommitted
[guide]: add "bigint" type to the primitives type section.
```js var bn = 123n ``` (with "n" as suffix)
1 parent 9890b40 commit 717ba51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Other Style Guides
7171
- `null`
7272
- `undefined`
7373
- `symbol`
74+
- `bigint`
7475

7576
```javascript
7677
const foo = 1;
@@ -81,7 +82,7 @@ Other Style Guides
8182
console.log(foo, bar); // => 1, 9
8283
```
8384

84-
- Symbols cannot be faithfully polyfilled, so they should not be used when targeting browsers/environments that don’t support them natively.
85+
- Symbols and BigInts cannot be faithfully polyfilled, so they should not be used when targeting browsers/environments that don’t support them natively.
8586

8687
<a name="types--complex"></a><a name="1.2"></a>
8788
- [1.2](#types--complex) **Complex**: When you access a complex type you work on a reference to its value.

0 commit comments

Comments
 (0)
0