2

I have this array that's logged like so:

enter image description here

How can I "convert" the array to be simpler, so it outputs like this? ["Acura", "Aston Martin", ...]

Thanks!

Ralph David Abernathy
  • 5,230
  • 11
  • 51
  • 78

1 Answers1

1

Instead of this:

console.log(["Acura", "Aston Martin"]);

Do this:

console.log(JSON.stringify(["Acura", "Aston Martin"]));
GirkovArpa
  • 4,427
  • 4
  • 14
  • 43