Now, we'll generate a simulation by adding the following to the bottom of app.js:
d3.forceSimulation()
Note that this simply creates a simulation; it doesn't specify how the simulation should run. Let's tell it which data to act on by modifying the previous line of code, as follows:
d3.forceSimulation()
.nodes(nodesData) // add this line