Skip to content

Instantly share code, notes, and snippets.

Avatar
🐑
🐑🐑🐏🐑🐑🐑

Tom Chen tomchen

🐑
🐑🐑🐏🐑🐑🐑
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am tomchen on github.
  • I am tomchenorg (https://keybase.io/tomchenorg) on keybase.
  • I have a public key whose fingerprint is C258 C4AF ECBC 1C27 A1F4 6CD5 3E37 9127 BF71 FD68

To claim this, I am signing this object:

@tomchen
tomchen / ES6_class_vs_ES5_function.js
Last active Apr 8, 2020
ES6 class vs ES5 constructor function
View ES6_class_vs_ES5_function.js
//ES6 class vs ES5 constructor function
// ES6 class
class MyClass {
// is executed upon instantiation, not to be used as a normal method
// proposal class properties
// https://babeljs.io/docs/en/babel-plugin-proposal-class-properties
// https://github.com/tc39/proposal-class-fields
You can’t perform that action at this time.