We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
According to MDN (source):
If function name is omitted, it will be the variable name (implicit name). If function name is present, it will be the function name (explicit name).
Code exmaple:
const foo = function () {}; foo.name // "foo" const foo2 = foo; foo2.name // "foo" const bar = function baz() {}; bar.name // "baz"
I suggest extending test cases with the following case:
diff --git a/Exercises/4-methods.test b/Exercises/4-methods.test index a408b22..78eb07d 100644 --- a/Exercises/4-methods.test +++ b/Exercises/4-methods.test @@ -10,11 +10,15 @@ }, m3(x, y, z) { return [x, y, z]; - } + }, + m4: function sum(x, y) { + return x + y; + }, }, [ ['m1', 1], ['m2', 2], - ['m3', 3] + ['m3', 3], + ['sum', 2], ] ], ]
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
According to MDN (source):
Code exmaple:
I suggest extending test cases with the following case:
The text was updated successfully, but these errors were encountered: