Here is some example code using the LIanja/VFP Framework.

This is exactly the same code in JavaScript and TypeScript as it is in Lianja/VFP. So if you know VFP there is nothing to fear about...