Created
April 22, 2023 09:02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arrayItems = ['a' , 'b', 'c' ]; | |
arrayItems.length; // returns 3 | |
//Delete one item starting from position 1 | |
arrayItems.splice(1,1); // returns true | |
arrayItems.length; // returns 2 | |
console.log(arrayItems); // [ 'a', 'c' ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment