how to select a string from a specific character in javascript code example Example: straforma in string js var x = new String("Una nuova stringa");