Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to split a name js

var firstName = fullName.split(' ').slice(0, -1).join(' ');
var lastName = fullName.split(' ').slice(-1).join(' ');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #split #js
ADD COMMENT
Topic
Name
2+9 =