User Tools

Site Tools


java-script:slice-vs-splice-methods

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

java-script:slice-vs-splice-methods [2023/08/11 17:02] – created odeftajava-script:slice-vs-splice-methods [2023/08/11 17:03] (current) odefta
Line 49: Line 49:
  
 <note> <note>
-slice is used to extract parts of an array without modifying it, while splice can add, remove, or replace elements within the array, changing its content in the process.+**slice** is used to extract parts of an array without modifying it, while **splice** can add, remove, or replace elements within the array, changing its content in the process.
 </note> </note>
- 
- 
- 
- 
- 
java-script/slice-vs-splice-methods.1691762567.txt.gz · Last modified: 2023/08/11 17:02 by odefta