Skip to content

Commit 6afdec5

Browse files
authored
Update exercise.js
1 parent 1043058 commit 6afdec5

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

Sprint-1/destructuring/exercise-3/exercise.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,3 @@ let order = [
66
{ itemName: "Hot Coffee", quantity: 2, unitPricePence: 100 },
77
{ itemName: "Hash Brown", quantity: 4, unitPricePence: 40 },
88
];
9-
10-
console.log(order[0]);
11-
12-
function x(array) {
13-
let b;
14-
for (let i = 0; i < array.length; i++) {
15-
b += i.itemName;
16-
}
17-
return b;
18-
}
19-
20-
console.log(x(order));

0 commit comments

Comments
 (0)