let stringToSplit = "abc def ghi"; console.log(stringToSplit.split(" ")[1]); // stringToSplit.split(" ") returns array and then we take the first element of the array with [0] Run code snippetHide results
split