Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

str into array

const str = "Hello World";
const bySpace = str.split(" ");

const otherString = "How9are7you2today";
const byDigits = otherString.split(/d/);
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #str #array
ADD COMMENT
Topic
Name
9+6 =