showing results for - "js crud on an array"
Sara Sofía
17 Feb 2020
1const fruits = [];
2
3fruits.push("Apple"); // Create
4
5fruits[0];            // Read
6
7fruits[0] = "Banana"; // Update
8
9fruits.splice(0, 1);  // Delete. Remove one item at index 0
10