toddmotto / ama

Ask me anything!
20 stars 3 forks source link

The Revealing Module Pattern vs. ES6 classes #46

Open adk1010 opened 8 years ago

adk1010 commented 8 years ago

Hi Todd,

I learnt a lot from your post on the Module Pattern in JavaScript and I particularly liked your style of coding the Revealing Module Pattern.

When writing code for ES6-compatible browsers do you stick to the Revealing Module Pattern to create class-like structures or do you use ES6 classes instead?

Looking forward to hearing your opinion on this topic. Cheers