Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript string to array

const str = 'Hello!';

const arr = Array.from(str);
//[ 'H', 'e', 'l', 'l', 'o', '!' ]
Source by www.dyn-web.com #
 
PREVIOUS NEXT
Tagged: #javascript #string #array
ADD COMMENT
Topic
Name
7+1 =