A value can be appended to an array in the given manner –

 
arr[arr.length] = value;