2 ms·
Just use `class`: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... If,
by nailer 9y ago
Just use `class`: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
If, for some reason, you need to support old browsers, you can transpile to ES5, ES3, stone tablets and similar.
- amatera 9y agoClasses are just syntactic sugar. They use prototype under the hood. So maybe it's good to know what happen there.