Skip to content

Commit

Permalink
Update lesson11.ts v2
Browse files Browse the repository at this point in the history
  • Loading branch information
jjcapparell authored Oct 21, 2024
1 parent 1c4586e commit 32397d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lesson_11/arrays_ts/src/lesson11.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

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

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

0 comments on commit 32397d6

Please sign in to comment.