Skip to content

Commit f737b0c

Browse files
committed
arrayelement
1 parent 47b7eb3 commit f737b0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Programs/Exercise/arrayele.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const newArray = map(arr, plusone); // [2,3,4]
2222
The function increases each value in the array by one.
2323
*/
2424

25-
var map = function(arr, fn) {
25+
var map = function (arr, fn) {
2626
const result = [];
2727

2828
for (let i = 0; i < arr.length; i++) {
@@ -36,4 +36,4 @@ function plusOne(n) {
3636
return n + 1;
3737
}
3838

39-
console.log(map([1,2,3], plusOne)); // [2,3,4]
39+
console.log(map([1, 2, 3], plusOne)); // [2,3,4]

0 commit comments

Comments
 (0)