Question from the Javascript test

Write a Javascript code that displays the contents of the table : Peter, Paul, Jacques, and the length of the table.

Easy

What does the following code display? More than one answer possible.

(We accept answers that only correspond to a part of everything that the program generates as output)

var arr = ['Peter', 'Paul', 'Jacques'];
console.log(arr.join(','));
arr.push('John');
console.log(arr[0]);
console.log(arr.length);
Author: Jean-marie CléryStatus: PublishedQuestion passed 2180 times
Edit
3
Community EvaluationsNo one has reviewed this question yet, be the first!