Hey everyone-Please help

Tell us what’s happening:
Hello everyone…I hope you are safe and in your home…Hopeyou are ok…I just wanted little help on this lesson…I have understand what I should do and I did it but is wrong…Can you help me to solve it??

Your code so far

  // Add your code below this line
   const scale = d3.scaleLinear()
  .domain([250, 500])
  .range([10, 150]);
  const output = scale(50);
  // Add your code above this line
  const output = scale(50);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36.

Challenge: Set a Domain and a Range on a Scale

Link to the challenge:

What do the failing tests say?

That's what my failing test is saying..

Edit: not really sure I got that edit right, I may have correct some mistake in the process. Sorry. Can you check your code and see?

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.


You’ve got the variable declaration for output in there twice.

Ohhh my god…How stupid i was…Thank you so much for helping…