JavaScript JavaScript Arrays Loop Through Arrays Array Methods

Azzie Fuzzie
seal-mask
.a{fill-rule:evenodd;}techdegree
Azzie Fuzzie
Full Stack JavaScript Techdegree Student 14,615 Points

console.log

Its saying are you logging the new variable

script.js
const planets = ['Earth','Mars','Saturn','Mecury','Jupiter','Venus','Uranus','Neptune'];
planets.join(', ');
console.log( planets);

1 Answer

John Maxwell
John Maxwell
9,249 Points

Just combine the console.log and the join methods

console.log(planets.join(', '));