Answers for "Split string on the first white space occurrence"

0

Split string on the first white space occurrence

str.substr(0,str.indexOf(' ')); // "72"
str.substr(str.indexOf(' ')+1); // "tocirah sneab"
Posted by: Guest on August-09-2021

Code answers related to "Split string on the first white space occurrence"

Code answers related to "Javascript"

Browse Popular Code Answers by Language