A CodePen by nicolas barradeau. progressive quad Bezier explained - isolated and commented sample from the previous pen.
hope it will be of some use. NB this is N-dimensionnal so you can process cubic Bezier too :)