Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 323 Bytes

Question_2723.md

File metadata and controls

14 lines (12 loc) · 323 Bytes

LeetCode Records - Question 2723 Add Two Promises

Attempt 1:

var addTwoPromises = async function(promise1, promise2) {
    const val1 = await promise1;
    const val2 = await promise2;
    return val1 + val2;
};
  • Runtime: 50 ms (Beats: 97.46%)
  • Memory: 49.69 MB (Beats: 31.43%)