^^ix Js strings

A string can be represented as a literal enclosed by single or double quotation marks; for example, "Hello" or 'Hello'.

 

  1. Characters in a string are indexed from left to right.
  2. The index of the first character is 0
  3. the index of the last character of a string called stringName is stringName.length - 1.

 

js str.length

js str.charAt(pos)

js s1.concat(s2,s3)

js str.indexOf(str2)

js str.indexOf(str2,pos)

js str.lastIndexOf(str2)

js str.toLowerCase()

js str.toUpperCase()

 

js_strings_complessivo.htm

 

js_scorri_stringa.htm

js_strings_indexof_2.htm

js Occorrenze di un carattere in una stringa.