Skip to content

Commit b4c5e78

Browse files
committed
Add method pop
1 parent f8ee24e commit b4c5e78

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

app4.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const arr = ['str1','str2',2,1,11]
2+
3+
console.log(arr.pop()); // 11
4+
console.log(arr); // ['str1','str2',2,1,11]
5+
6+
console.log(arr.unshift(55)); // 5
7+
console.log(arr); // [55,'str1','str2',2,1,11]
8+
9+

0 commit comments

Comments
 (0)