This is an example of calling an AWS Lambda function from a web page via JavaScript.
Instead of a static "Hello World", here you can provide a greet and name, and you will receive customized greetings.
Try without a greet or without a name, too.