split string on the first white space occurrence

Solutions on MaxInterview for split string on the first white space occurrence by the best coders in the world

showing results for - "split string on the first white space occurrence"
Renata
09 Oct 2019
1str.substr(0,str.indexOf(' ')); // "72"
2str.substr(str.indexOf(' ')+1); // "tocirah sneab"
3