Suprabha's Blog

Suprabha's Blog

Series

JavaScript


Articles in this series

Splice in JavaScript

Sep 26, 20202 min read

The splice method changes the content of the array in place and can be used to add or remove items from the array. const arr = ["🌼", "🌴", "🌹", "🌵", "🍄"]; arr.splice(2,3); // ["🌹", "🌵", "🍄"] console.log(myArr); // ["🌼", "🌴"]</span> Syntax: l...

Splice in JavaScript
Testing Javascript with React
replaceAll in JavaScript
How JavaScript Works 🤷🏻‍♀️
Remove duplicate value from array
Use Javascript console like pro