What does `Array.from(‘hello’)` return?

JavaScript Developer Easy

JavaScript Developer — Easy

What does `Array.from(‘hello’)` return?

Key points

  • `Array.from()` converts an iterable object into an array.
  • The string 'hello' is an iterable object.
  • Each character in the string becomes an element in the resulting array.

Ready to go further?

Related questions