Easy
This question is a daily question and will count towards your daily streak.
In JavaScript, how could we return the last element of an array?
1// example2const array = ['hello', 'world', '!'];3// MISSING LINE HERE4const lastElement = ...56console.log(lastElement); // '!'