const apples = ['red apple', 'green apple', 'yellow apple', 'Mac']
apples.splice(0,0, 'Japan apple') // I add a 'Japan apple' in index[0], and I wan't remove anythings.
now apples is [ 'Japan apple', 'red apple', 'green apple', 'yellow apple', 'Mac' ]
I want treate this topic in another article.
have a nice day
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
const apples = ['red apple', 'green apple', 'yellow apple', 'Mac']
apples.splice(0,0, 'Japan apple') // I add a 'Japan apple' in index[0], and I wan't remove anythings.
now apples is [ 'Japan apple', 'red apple', 'green apple', 'yellow apple', 'Mac' ]
I want treate this topic in another article.
have a nice day