MDN | MDN Curriculum | Playground | HTTP Observatory | About MDN | Advertise with us | Community | Blog | MDN Plus | MDN Discord | HTML: Markup language | Elements | Global attributes | Attributes | See all… | Responsive images | HTML cheatsheet | Date & time formats | See all… | SVG | MathML | XML | CSS: Styling language | Properties | Selectors | At-rules | Values | See all…
Tin mới
JavaScript: Scripting language
Web APIs: Programming interfaces
Structuring content with HTML module
Dynamic scripting with JavaScript module
Zero-based index at which to start changing the array, converted to an integer.
Remove 0 (zero) elements at index 0, and insert "angel"
splice(0, 0, ...elements) inserts elements at the start of the array like unshift().
Remove 0 (zero) elements at last index, and insert "sturgeon"
splice(array.length, 0, ...elements) inserts elements at the end of the array like push().
This page was last modified on Jul 10, 2025 by MDN contributors.