Skip to content
On this page

String To Array

js
const str = "apple";
console.log([...str]);
// [ 'a', 'p', 'p', 'l', 'e' ]