Answers for "substring #"

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
5

javascript substring

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

substring

# Python3 program to Remove repeated 
# unordered sublists from list
  
def Remove(lst):
     return ([list(i) for i in {*[tuple(sorted(i)) for i in lst]}])  
       
# Driver code
lst = [[1], [1, 2], [3, 4, 5], [2, 1]]
print(Remove(lst))
Posted by: Guest on May-27-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language