Skip to content

Instantly share code, notes, and snippets.


Tom Chen tomchen

View GitHub Profile

Keybase proof

I hereby claim:

  • I am tomchen on github.
  • I am 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 / 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
You can’t perform that action at this time.