array.unshift ( AA,BB) - This method add elements to the beginning of an array and returns you the new length.
Similarly this method add element AA,BB to the beginning of an array object elements.
Again, the for loop run the script till the variable i is less than the array length. The document. write return you an array after applying unshift method.
Output of the program
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.