String
Widely used in email systems and on the internet.
UTF - 8
Used in windows, Java and by JavaScript, and often for plain text and for word-processing data files on Windows.
UTF - 16
The mainly used in internal APIs where the data is single code points or glyphs, rather than strings of characters.
UTF - 32
In JavaScript strings are _____________ or ___________________.
In JavaScript strings are immutable or unchangeable.
method returns the size of the string.
length()
method will join the string with one or more strings.
concat()
method will remove the spaces from beginning and end of the strings.
trim()
methods will remove the spaces from the beginning of the strings.
trimStart() or trimLeft()
methods will remove the spaces from the beginning of the strings.
trimEnd() or trimRight()
method will replace the specified string into new string.
replace()
method will return the part of the strings.
substring()
method will return the part of the strings.
substr()
method will return the position of first occurrence of the specified string
indexOf()
method will return the position of last occurrence of the specified string
lastIndexOf()
method will return the part of the strings.
slice()
method will convert string into array of strings.
split()
method will true if string includes the specified word else returns the false
includes()
array