Answers for "substring(1)"

54

js substring

// the substring method returns a string out of another string

const str = 'Mozilla';

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

console.log(str.substring(2));
// expected output: "zilla"
Posted by: Guest on March-17-2020
13

substring

const str = 'Mozilla';

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

console.log(str.substring(2));
// expected output: "zilla"
Posted by: Guest on February-06-2020
5

javascript substring

// zero-based index, 'end' is excluded from result
myString.substring( start, end )
Posted by: Guest on December-04-2020
0

sub string

substr(string_name, start_pos, length_to_cut)
Posted by: Guest on June-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language