crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript async / await</h2> <h1 id="demo"></h1> <script> async function myDisplay() { let myPromise = new Promise(function(resolve, reject) { resolve("I love You !!"); }); document.getElementById("demo").innerHTML = await myPromise; } myDisplay(); </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDI+SmF2YVNjcmlwdCBhc3luYyAvIGF3YWl0PC9oMj4NCg0KPGgxIGlkPSJkZW1vIj48L2gxPg0KDQo8c2NyaXB0Pg0KYXN5bmMgZnVuY3Rpb24gbXlEaXNwbGF5KCkgew0KICBsZXQgbXlQcm9taXNlID0gbmV3IFByb21pc2UoZnVuY3Rpb24ocmVzb2x2ZSwgcmVqZWN0KSB7DQogICAgcmVzb2x2ZSgiSSBsb3ZlIFlvdSAhISIpOw0KICB9KTsNCiAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImRlbW8iKS5pbm5lckhUTUwgPSBhd2FpdCBteVByb21pc2U7DQp9DQoNCm15RGlzcGxheSgpOw0KPC9zY3JpcHQ+DQoNCjwvYm9keT4NCjwvaHRtbD4=