SyntaxFix
Write A Post
Hire A Developer
Questions
var y = [1,2,3,4,5,6,7,8,9,10];_x000D_ _x000D_ console.log(y.slice((y.length - 5), y.length))
you can do this!