Question from the Javascript - Fundamentals test

Remove the last element of an array in Javascript

Easy

What does the following code display?

   const city = ['Saint-Etienne', 'Clermont-ferrand', 'Grenoble', 'Annecy']; 
   city.pop(); 
   console.log(city); 
Author: KahinaStatus: Published(Update)Question passed 1994 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!