fr
fr

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 2742 times
Edit
4
Community Evaluations
developer avatar
Heinz
21/01/2025
shift pop...