Skip to content
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

Exercise 13 - Should return be removed? #140

Open
vishalsodani opened this issue Feb 18, 2016 · 1 comment
Open

Exercise 13 - Should return be removed? #140

vishalsodani opened this issue Feb 18, 2016 · 1 comment
Labels

Comments

@vishalsodani
Copy link

When I remove the below commented lines I get an error; return not in function. And, if I remove return before JSON.stringify it works.

var spanishFrenchEnglishWords = [ ["cero","rien","zero"], ["uno","un","one"],  ["dos","deux","two"] ];
// collect all the words for each number, in every language, in a single, flat list
var allWords = [0,1,2].
    concatMap(function(index) {
        return spanishFrenchEnglishWords[index];
    });

return JSON.stringify(allWords) === '["cero","rien","zero","uno","un","one","dos","deux","two"]';

`

@thomasvanlankveld
Copy link

thomasvanlankveld commented May 19, 2016

I get SyntaxError: Illegal return statement (but works fine after removing return statement)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants