1 2 3 4 5 6
class Foo { method(a, b) {} } // out: TypeError: method() takes 2 arguments but 1 were given Foo().method(1);