Appending an Element at the End of a JavaScript Array by Index

Company: Mathworks_3oct

Difficulty: easy