return specific number of char from string javascript code example Example: straforma in string js var x = new String("Una nuova stringa");