Skip to content

Commit 8f6a336

Browse files
authored
Update arrObj.js
1 parent f3e68ad commit 8f6a336

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Interview-Questions/arrObj.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,10 @@ const arr = [1, 2, 3, 4, 5];
152152
arr.push(arr.push(arr.push(arr.pop())))
153153

154154
console.log(arr);
155+
156+
157+
// OUTPUT
158+
const arrayOfOddNumbers = [1, 3, 5];
159+
arrayOfOddNumbers[100] = 199;
160+
console.log(arrayOfOddNumbers.length);
161+

0 commit comments

Comments
 (0)