Js Array add and display function

Enter the Input

JS Array

Remove last element of array

Ram,Sham,Mohan,Sohan

Add a element of array

delhi,mumbai,chennai,banglore

jsloop

Maruti