Frage im Vorstellungsgespräch bei Cisco

Why is javascript considered a functional programming language?