Answers for "js left string"

31

substring javascript

var str = "Hello world!";
var res = str.substring(1, 4); //ell
Posted by: Guest on December-25-2019
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
0

javascript select letter in string

const str = 'Hello';
str.substring(0, 2); // => 'Hel'
Posted by: Guest on November-28-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language