A single artificial neuron computes a weighted sum, w·x + b, which is a straight line: enough to pass through any two points and no more. Pass many of those lines through a nonlinear activation and add them up, and the network can bend into almost any shape the data asks for.
Drag the points. The neuron's weight and bias solve exactly for the line through them. Add a third point and watch a single line run out of freedom.
Two parameters, two points: the line fits them exactly.
Each hidden neuron draws its own line, bends it with an activation, and scales it. The output adds every bent line together. Tap the plot to add points, pick a shape, and add neurons until the curve can follow it.
Tap a hidden neuron in the diagram to highlight its piece of the curve.