Different languages, different paradigms, different designs, different flaws…
You are learning a new language, not toying with a broken implementation of your preferred language. JS is not a subset of C++ or Java. Think/act accordingly.
I don't use ".prototype" in AS3 or PHP because it doesn't make sense. I don't use "class" in JS because it doesn't make sense.
Do it for your own sanity.
It's really quite simple but it seems to be hard for a lot of people.
Different languages, different paradigms, different designs, different flaws…
You are learning a new language, not toying with a broken implementation of your preferred language. JS is not a subset of C++ or Java. Think/act accordingly.
I don't use ".prototype" in AS3 or PHP because it doesn't make sense. I don't use "class" in JS because it doesn't make sense.
Do it for your own sanity.
It's really quite simple but it seems to be hard for a lot of people.