Array:

let names = [‘xyz1’, ‘ xyz2’, ‘xyz3’,xyz4']

Given below list of questions to understand the array with better understanding :

  1. add the ‘xyz4’ to last of array
  2. read the array
  3. update the given array from ‘xyz2’ to ‘xyz3’
  4. delete the element ‘xyz3’ from the give array

Do all the question given above but there is twist is that you should do it with single method.

--

--