Tell us what’s happening:
Your code so far
<body>
<script>
// Add your code below this line
const scale = d3.scaleLinear();
scale.domain([250,500])
scale.range([10,150])
// Add your code above this line
const output = scale(480);
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/67.0.3396.99 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/data-visualization/data-visualization-with-d3/set-a-domain-and-a-range-on-a-scale