Skip to content

Commit fe96b7a

Browse files
authored
Update arrObj.js
1 parent 099355e commit fe96b7a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Interview-Questions/arrObj.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,11 @@ obj.getX();
144144
const arrayTotal = a.reduce((t, i) => t+i);
145145

146146
console.log(arrayTotal)
147+
148+
149+
// OUTPUT
150+
const arr = [1, 2, 3, 4, 5];
151+
152+
arr.push(arr.push(arr.push(arr.pop())))
153+
154+
console.log(arr);

0 commit comments

Comments
 (0)