Skip to content

Commit 70dba3f

Browse files
committed
add method call and console for output
1 parent 7de756f commit 70dba3f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CodeBase/TwoSum.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ function twoSum(nums, target) {
1313
obj[n] = i; // Store the index of the current number
1414
}
1515
};
16-
}
16+
}
17+
18+
let numArr = [2,3,4,5,6,7]
19+
const target = 10
20+
21+
console.log(twoSum(numArr, target))

0 commit comments

Comments
 (0)