Confusing position of "Only change code above this line" at challenge "Using objects for lookup"
See original GitHub issueChallenge Name
Issue Description
Browser Information
- Browser Name, Version:
- Operating System:
- Mobile, Desktop, or Tablet:
Your Code
Screenshot
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
freeCodeCamp Challenge Guide: Using Objects for Lookups
As you can see, it says only to change the code above the line. This is extremely confusing. is it a bug? or...
Read more >I don't understand freecodecamp challenge using objects for ...
First you convert the switch statement to an object lookup like ... Only change code above this line return result; ... Run code...
Read more >C++ Core Guidelines - GitHub Pages
The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++.
Read more >Groovy Language Documentation
Single-line comments start with // and can be found at any position in the line. The characters following // , until the end...
Read more >5. Categorizing and Tagging Words - NLTK
Now make up a sentence with both uses of this word, and run the POS-tagger on this sentence. Lexical categories like "noun" and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You are expected to return a string, and hence the
var result
has already been created as such, it can be assigned from a value from the array.That’s the intent of the challenge. IMHO the placement of the comment is correct. /cc @erictleung this can be closed. Leaving it for your opinion.
@PrepressNinja You are not meant to change the return line. As Raisedadead said: You are expected to return a string, and hence the var result has already been created as such, it can be assigned from a value from the array.
That’s the intent of the challenge. IMHO the placement of the comment is correct.