Run
Online Code Editor
var arr=["AngularJS","Node.js","JQuery","Bootstrap"] // place from 0th position, the elements between 1st and 3rd position. var result=arr.copyWithin(0,1,3); document.writeln(result);