I can't understand equations. But I'm a software engineer. I think the brevity of the equation is confusing to me where a program spells it all out.
Trying to translate the equation for a bezier curve into javascript. The equation on wikipedia appears as-
Translating this to javascript looks like this-
function B(t, p0, p1, p2, p3) {
return Math.pow((1 - t), 3) * p0 + 3 * Math.pow((1 - t), 2) * p1 + 3 * (1 - t) * Math.pow(t, 2) * p2 + Math.pow(t, 3) * p3;
}
But this doesn't make sense. A point is made up of an x and y coordinate. How can multiple values be represented by a single value in a meaningful way? How is this equation usable?

As others have mentioned, the "$\mathbf{P}$" things are 2D points; each of them has an $x$ coordinate and a $y$ coordinate. Or, actually, in some situations, the $\mathbf{P}$ objects might be 3D points having $x$ , $y$ and $z$ coordinates.
So, suppose $\mathbf{P}_0$ has coordinates $(x_0,y_0)$, and, similarly, $\mathbf{P}_1 = (x_1,y_1)$, $\mathbf{P}_2 = (x_2,y_2)$, and $\mathbf{P}_3 = (x_3,y_3)$. Then the necessary code is:
There are ways to write this that involve slightly fewer arithmetic operations, but I thought clarity would be more important than performance, at this stage.
I don't know much about Javascript, but in other languages (C# for example) you would create a Point class and you would overload the "+" and "*" operators. Then you woud be able to write code that looks exactly like the formula you cited:
Here
f0*p0represents the numberf0multiplied by the pointp0, and so on.