Advertisement
PadmaJS

Untitled

Aug 10th, 2021
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. async function myDisplay() {
  2. let myPromise = new Promise(function(myResolve, myReject) {
  3. myResolve("FU");
  4. });
  5. document.getElementById("demo").innerHTML = await myPromise;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement