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 2520 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!