How to get the last element of an Array in JavaScript #shorts

Published --