Answers for "remove a first then b javascript"

9

javascript remove first character from string

let str = " hello";
str = str.substring(1);
Posted by: Guest on October-03-2020
0

javascript how to remove first element of array

var colors = ["red", "blue", "green"]

var firstColor = colors.shift()

console.log(firstColor) // red
console.log(colors) // blue green
Posted by: Guest on January-30-2021

Code answers related to "remove a first then b javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language