What is the most simple way to convert a string into an arrray | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is the most simple way to convert a string into an arrray

Like var str='Abhay' How to make it an array by few lines of codes like this :- arr = [A, b, h, a, y]

30th May 2020, 1:38 PM
Abhay
Abhay - avatar
1 Answer
+ 2
var arr = [...str]
30th May 2020, 1:47 PM
Calviղ
Calviղ - avatar