Answers for "split string with the first space occurs JavaScript"

0

split string with the first space occurs JavaScript

var str="72 tocirah sneab";
str.substring(0, str.indexOf(' ')); // "72"
str.substring(str.indexOf(' ') + 1); // "tocirah sneab"
Posted by: Guest on March-16-2022

Code answers related to "split string with the first space occurs JavaScript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language