What is the output of `[…’abc’]`?

JavaScript Developer Easy

JavaScript Developer — Easy

What is the output of `[…’abc’]`?

Key points

  • The square brackets indicate an array in JavaScript.
  • Each character in the string is treated as a separate element in the array.
  • The output is not a single string or an array with the entire string as an element.

Ready to go further?

Related questions