get specific characters from string javascript code example
Example 1: javascript get first character of string
var str="Hello Folks!"
var firstStringChar = str.charAt(0); //H
Example 2: javascript substring
// zero-based index, 'end' is excluded from result
myString.substring( start, end )
Example 3: straforma in string js
var x = new String("Una nuova stringa");