We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cbdcda commit 5830be2Copy full SHA for 5830be2
JavaScript/Tasks/2-promise.js
@@ -1,6 +1,7 @@
1
'use strict';
2
3
// Task: rewrite `total` from callbacks contract to promises
4
+// Hint: do not use `async () =>` syntax
5
6
const total = (items, callback) => {
7
let result = 0;
0 commit comments