Skip to content

Commit 15bdb67

Browse files
fix: ans needs to be const
1 parent b97a8ac commit 15bdb67

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
@@ -11,7 +11,7 @@ export function getConcatenation(nums: number[]): number[] {
1111
* https://leetcode.com/problems/find-words-containing-character/
1212
*/
1313
export function findWordsContaining(words: string[], x: string): number[] {
14-
let ans = [];
14+
const ans = [];
1515
for(let i = 0; i<words.length; i++){
1616
if (words[i].includes(x)){
1717
ans.push(i);

0 commit comments

Comments
 (0)