Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var testArray = ["a","b","c"];
- console.log(testArray);
- console.log("size:" + testArray.length);
- ["a", "b", "c"]
- size:3
- var testArray = ["a","b","c"];
- console.log(testArray);
- console.log("size:" + testArray.length);
- testArray = testArray.splice(0,1);
- ["b", "c", undefined × 1]
- size:3
- var testArray = ["a","b","c"];
- console.log(testArray);
- console.log("size:" + testArray.length);
- testArray = testArray.splice(0,1);
- console.log(testArray);
- console.log("size:" + testArray.length);
- ["b", "c", undefined × 1]
- size:3
- ["a"]
- size:1
- var testArray = ["a","b","c"];
- console.log(testArray);
- console.log("size:" + testArray.length);
- testArray.splice(0,1);
- console.log(testArray);
- console.log("size:" + testArray.length);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement