Javascript example along with Conclusion part.
Adjust to new Array-based syntax.