Then why classes introduced in es6. If we can do composition in JavaScript.
sabareesh k
14

Actually classes in Javascript are just syntactic sugar over the language’s properties. Nothing new with them, it just makes things look “nicer” and maybe simpler to newcomers.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.