JavaScript functions or methods?
ECMAScript standards are evolving rapidly with lots of new features being added regularly. Sometimes there are new features (like inclusion of class keyword) and sometimes they add to existing features.
Recently JS got the ability to define "methods" inside object literals which is an alternate to "function" property of object literals.
Which one is better from the point of view of memory utilisation?

