Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript split string in array using comma

let message = 'I am a Happy Go lucky Guy';
console.log(message.split(' ', 4)); // ["I", "am", "a", "Happy"]
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #javascript #split #string #array #comma
ADD COMMENT
Topic
Name
1+4 =