let removed = arr.splice(0, 2);. alert( removed ); // "I", "study" <-- array of removed elements. . // insert. let arr = ["I", "study", "JavaScript"];.
確定! 回上一頁