Skip to content

Instantly share code, notes, and snippets.

@TheShubhamVsnv
Created May 12, 2024 16:54
Show Gist options
  • Save TheShubhamVsnv/655cfdbb45426574650039f4dcbabd98 to your computer and use it in GitHub Desktop.
Save TheShubhamVsnv/655cfdbb45426574650039f4dcbabd98 to your computer and use it in GitHub Desktop.
let items = ["apple", "banana", "orange"];
items.splice(1, 1, "grape", "melon"); // Replace "banana" with "grape" and "melon"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment