Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js index to index

let array = [5, "Foo", 3, "Bar"];
array.slice(2);
// Output = [3, "Bar"]

let string = "Volvo Cars";
string.slice(2);
// Output = "lvo cars"
 
PREVIOUS NEXT
Tagged: #js #index #index
ADD COMMENT
Topic
Name
3+4 =