Bug in "Learn How Bezier Curves Work"

So when you write the code(not copy/paste), had an error.

I do not know what you mean. Can you please explain further and provide code demonstrating your issue?

Often people make typos when typing instead of copy-pasting.

Yes, my bad, I wrote before code incorrect, try to repeat the bug, everything is ok.