Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lwc:programming:javascript [2025/03/18 13:50] – John Harrison | lwc:programming:javascript [2025/03/18 13:58] (current) – John Harrison | ||
---|---|---|---|
Line 54: | Line 54: | ||
==== Promises ==== | ==== Promises ==== | ||
- | Promises are always async and often used to prevent UI blocking when waiting for something like an I/O interface | + | Promises are always async and often used to prevent UI blocking when waiting for something like an I/O interface. If a function has a '' |
=== Creating the promise (producing) === | === Creating the promise (producing) === | ||
< | < | ||
Line 83: | Line 83: | ||
^ Category ^ Old Skool ^ Arrow Function | ^ Category ^ Old Skool ^ Arrow Function | ||
| No Parameter | | No Parameter | ||
- | | One Parameter | + | | One Parameter |
| Two Parameters | | Two Parameters |