The concatenated str and array are assigned to a variable str.
document.getElementById - This return you the element on the basis of respective element Id.
On loading of this code, the browser displays you the value of element in str variable.
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.