Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript Split the string into an array of characters

// split the text into array of chars using empty string
console.log("ABCDEFGHIJK".split(''));

// split the text into array of chars using empty string and limit to 3 chars
console.log("ABCDEFGHIJK".split('', 3));
Source by itsjavascript.com #
 
PREVIOUS NEXT
Tagged: #JavaScript #Split #string #array #characters
ADD COMMENT
Topic
Name
2+3 =