Skip to content

Instantly share code, notes, and snippets.

@nahanil
Last active March 4, 2020 04:57
Show Gist options
  • Save nahanil/491078425a71032a34f44294ff3af2c3 to your computer and use it in GitHub Desktop.
Save nahanil/491078425a71032a34f44294ff3af2c3 to your computer and use it in GitHub Desktop.
fancy-new-shoes.js

Optional.?Chaining

Stage 4

Nullish ?? coalescing

Stage 4

Private Class fields

Stage 3

Private fields provide a strong encapsulation boundary: It's impossible to access the private field from outside of the class, unless there is some explicit code to expose it (for example, providing a getter). This differs from JavaScript properties, which support various kinds of reflection and metaprogramming

[].includes('how did I miss this?')

squishyyyy

fatteh

BigInt

useful, it might be?

''.matchAll(/.../)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment