JavaScript Demo
JavaScript / HTML/ CSS Code
Output
The array elements are (by using a for loop):
The array elements are (by using a for loop):