Run
Online Code Editor
Array Methods
//invoking the arr() function.