3.12. Sending a request for coffeeWith the HTML complete, it's back to our JavaScript. Let's write the JavaScript to send a request to the server to make coffee. By now, you're a pro at making requests, so orderCoffee() should be a piece of cake, right? Let's think through what this function needs to do: orderCoffee() sendRequest() coffeemaker.php coffee.js
|