Question: Write a JavaScript function named getLast that takes one parameter: an array named list and returns the value of the last element in list.
Write a JavaScript function named getLast that takes one parameter: an array named list and returns the value of the last element in list.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
