Skip to content

Commit 32397d6

Browse files
authored
Update lesson11.ts v2
1 parent 1c4586e commit 32397d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lesson_11/arrays_ts/src/lesson11.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
export function getConcatenation(nums: number[]): number[] {
3-
const answer = [2*nums.length];
3+
const answer = new Array(2*nums.length);
44

55
for (let i=0;i<nums.length;i++){
66
answer[i]=nums[i];

0 commit comments

Comments
 (0)