JavaScript: String Operators/Function/Methods
String length
"abc".length; // 3
Note: no parenthesis after βlengthβ.
Substring
console.log( "01234".slice(1,3) === "12"); // true
Index starts at 0.
[see String.prototype.slice]
Join String
Use the plus sign +
to join strings.
console.log( "tiger" + "rabbit"); // tigerrabbit