Skip to content

Need Help in array #596

Answered by TianMeds
HirayaEs asked this question in Q&A
Nov 28, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

The splice() method adds and removes array elements while The slice() method selects from a given start, up to a (not inclusive) given end.
The slice has a syntax of the array.slice(start, end) and for splice array.splice(index, howmany, item1, ....., itemX) you can visit It in the w3school if your a beginner

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@HirayaEs
Comment options

@ravi-aratchige
Comment options

Answer selected by HirayaEs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants