take off the first word of string in javascript code example Example: get first word of string js let myStr = "Hello World" let firstWord = myStr.split(" ")[0]