Erro no código D3

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<body>
<script>
  // Add your code below this line
  const scale = d3.scaleLinear();
.domain([250, 500])
  .range([10, 150]);


  // 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 (Linux; Android 8.0.0; ASUS_Z012DC) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Mobile Safari/537.36 OPR/64.2.3282.60128

Challenge: Set a Domain and a Range on a Scale

Link to the challenge:

1 Like

remove ;
from:

const scale = d3.scaleLinear();

and thet`s it…

Eliminar ;

1 Like