String

Split

  • String split into serval arrays

const str = 'The quick brown fox jumps over the lazy dog.';

const words = str.split(' ');
console.log(words[3]);
//fox

Sub String

const str = 'Mozilla';

console.log(str.substring(1, 3));
// expected output: "oz"

console.log(str.substring(2));
// expected output: "zilla"

Searching

Check true/false

Concat

Matching

Pad

Repeat

Replace

Slice

Last updated

Was this helpful?