-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
feat: Numeric Separatorsの対応、ビット演算子の書き直し #1312
Conversation
Deploy preview for js-primer ready! Built with commit dca0202 |
|
みたいにビットというprefixが省かれてるので、最初は省かないようにする |
←、→って表現がECMAScriptっぽくないので修正する。 |
@@ -255,6 +255,38 @@ BigIntは整数を扱うデータ型であるため、次のように小数点 | |||
|
|||
<!-- textlint-enable --> | |||
|
|||
### [ES2021] Numeric Separators {#numeric-separators} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Numeric Separatorsをデータ型に追加。
それぞれのリテラルに書くかまよったけど、Numeric Separatorsとして数値のリテラルで使えるよという形にした。
@@ -487,69 +487,104 @@ console.log(43 <= 42); // => false | |||
|
|||
## ビット演算子 {#bit-operator} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ビット演算は書き直し。
図も入れた。
ビット演算自体がユースケースにないので、これ自体をまるっとスキップするのも検討する
@@ -103,6 +103,7 @@ JavaScriptの言語機能に関するチートシートです。 | |||
| `0b10` | [ES2015] **2進数**の整数リテラル | [データ型とリテラル][] | | |||
| `0o777` | [ES2015] **8進数**の整数リテラル | [データ型とリテラル][] | | |||
| `0x30A2` | **16進数**の整数リテラル | [データ型とリテラル][] | | |||
| `123_456` | [ES2021]数値リテラルにおける**Numeric Separators** | [データ型とリテラル][] | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Numeric Separatorsをチートシートに追加
変更点
fix #1311