From 717ba5187af3b4c36877c2a7031edf202e72cf88 Mon Sep 17 00:00:00 2001 From: lagagain Date: Fri, 28 Feb 2020 14:53:58 +0800 Subject: [PATCH] [guide]: add "bigint" type to the primitives type section. ```js var bn = 123n ``` (with "n" as suffix) --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f18c47b4b7..5aa7ca2c63 100644 --- a/README.md +++ b/README.md @@ -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 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. - [1.2](#types--complex) **Complex**: When you access a complex type you work on a reference to its value.