question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Confusing position of "Only change code above this line" at challenge "Using objects for lookup"

See original GitHub issue

screen shot 2016-07-22 at 8 46 47 pm

Challenge Name

Issue Description

Browser Information

  • Browser Name, Version:
  • Operating System:
  • Mobile, Desktop, or Tablet:

Your Code


Screenshot

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
raisedadeadcommented, Jul 23, 2016

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.

0reactions
OFFLlNEcommented, Feb 15, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found