Question from the Javascript - Fundamentals test

How to add an element to an array in Javascript

Hard

What does the following code display?

const ville = ['Saint-Etienne', 'Clermont-ferrand', 'Grenoble', 'Annecy'];
let n = ville.push('Lyon'); 
console.log(n); 
Author: KahinaStatus: Published(Update)Question passed 186 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!