JavaScript interview Series
Dec 4, 2020
Array:
let names = [‘xyz1’, ‘ xyz2’, ‘xyz3’,xyz4']
Given below list of questions to understand the array with better understanding :
- add the ‘xyz4’ to last of array
- read the array
- update the given array from ‘xyz2’ to ‘xyz3’
- 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.