crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>JavaScript Arrays</h2> <script> let courses = ['HTML', 'CSS', 'JavaScript', 'PHP', 'MYSQL']; document.write("<b>" + courses.copyWithin(0, 1) + "</b>"); /* old Elements = ['HTML', 'CSS', 'JavaScript', 'PHP', 'MYSQL'] copy to index 0 the element at index 1 */ </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDI+SmF2YVNjcmlwdCBBcnJheXM8L2gyPg0KDQo8c2NyaXB0Pg0KbGV0IGNvdXJzZXMgPSBbJ0hUTUwnLCAnQ1NTJywgJ0phdmFTY3JpcHQnLCAnUEhQJywgJ01ZU1FMJ107DQpkb2N1bWVudC53cml0ZSgiPGI+IiArIGNvdXJzZXMuY29weVdpdGhpbigwLCAxKSArICI8L2I+Iik7DQovKg0Kb2xkIEVsZW1lbnRzID0gICBbJ0hUTUwnLCAnQ1NTJywgJ0phdmFTY3JpcHQnLCAnUEhQJywgJ01ZU1FMJ10NCmNvcHkgdG8gaW5kZXggMCB0aGUgZWxlbWVudCBhdCBpbmRleCAxDQoqLw0KPC9zY3JpcHQ+DQoNCjwvYm9keT4NCjwvaHRtbD4=