JS syntax made easy: literal object vs. class syntax
There are so many ways to define a method inside a class or a literal object. They are similar enough...
Tags: javascript, syntax, guide, howto