-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with tests for scopes challenge #26
Comments
The solution is below:
|
@lenguyenthanh |
@LisaKhadijah what is your syntax error? It looks correct. |
@lenguyenthanh |
@lenguyenthanh shouldn't @arun1595 solution be valid too though? |
@lenguyenthanh the solution of @arun1595 is a valid kind to define a function. |
Assigning a function to a variable did not give it a name in Node versions prior to 6: var foo = function () {}
console.log(foo.name)
console.log((function bar() {}).name) So that, and I think that the validation is harder were the reasons why this doesn't work. A PR that fixes this would be good imo. |
The challenge asks us to create a function foo and lexically scope a variable bar.
My solution was
However one of the tests fail. I think the above solution is also right and should be accepted.
Correct me if I am wrong.
The text was updated successfully, but these errors were encountered: