Contact: aviboots(AT)netvision.net.il
39,950 questions
51,892 answers
573 users
const s = "java nodejs go javascript rust"; let arr = s.split(" "); console.log("The length of the last word is: " + arr[arr.length - 1].length); /* run: The length of the last word is: 4 */