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
<body>
<script>
// Add your code below this line
const scale = d3.scaleLinear()
.domain([250, 500])
.range([10, 150]);
const output = scale(50);
d3.select("body")
.append("h2")
.text(output);
// Add your code above this line
const output = scale(50);
d3.select("body")
.append("h2")
.text(output);
</script>
</body>
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.
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.