Functional Programming Concepts In Javascript Alert