Skip to content

Commit d746294

Browse files
committed
Increased the decimal places to four in order to make the function more accurate.
1 parent 1485358 commit d746294

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Sprint-1/implement/sum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function sum(elements) {
99
for (let i = 0; i < sortedElements.length; i++) {
1010
total += sortedElements[i];
1111
}
12-
return Number(total.toFixed(1));
12+
return Number(total.toFixed(4));
1313
}
1414

1515
module.exports = sum;

Sprint-2/implement/lookup.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
function createLookup() {
1+
function createLookup(countryCurrency) {
22
// implementation here
3+
for(let value of countryCurrency) {
4+
const [key,value] =
5+
}
36
}
47

58
module.exports = createLookup;

0 commit comments

Comments
 (0)