How to input D3

I was going to do the test bust i immediately ran into an obstacle…

HOW THE F**K DO I GET D3 WORKING!?!

I NEED HELP MAKING IT WORK.
please tell me i’m not the best programmer
Link: https://codepen.io/khaledkanan/pen/LYoPBeE

First, you need to import the d3 library. In CodePen this can be done in the Pen Settings:


Search for d3 and add it alongside the other external scripts.

Second, you’ll need to move all of the JS stuff out of the HTML tab and put it into the JS tab instead. Your pen should then render as per this screenshot:

It’s also a good idea to put your CSS in the corresponding tab too. Then you can work more cleanly, rather than using script or style tags within your HTML doc.

What do you mean?
Can you show me the code

do something like this

(Example:)
let one = 1;

if (one == 1) {
  console.log("One is one!");
}