KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In a JavaScript array, how do I get the last 5 elements, excluding the first element ? [1, 55, 77, 88] // ...would return [55, 77, 88] adding additional examples: [1, 55, 77, 88, 99, 22, 33, 44] // ...would return [88, 99, 22, 33, 44] [1] // ...would return []
Tags (comma-separated)
Save Edits
Cancel