How to get Last X Elements of an Array in JavaScript

How to get Last X Elements of an Array in JavaScript