We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 826e2e0 commit 8c74a98Copy full SHA for 8c74a98
CodingInterviewQuestions/SlicedArr.js
@@ -0,0 +1,3 @@
1
+const array = [1, 2, 3, 4, 5];
2
+const slicedArray = array.slice(1, 4);
3
+console.log(slicedArray); // Output: [2, 3, 4]
0 commit comments