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